diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-01-06 07:35:29 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-01-06 08:07:40 +0100 |
commit | bb9ac3fd3f7069ca61d98e3a94d1df7d5781813e (patch) | |
tree | 511b6b3373741d5407ee65411e4132a5be70b40a /nx-X11/programs | |
parent | 67599026d01692c52276df6ff5e8332d2413c18f (diff) | |
download | nx-libs-bb9ac3fd3f7069ca61d98e3a94d1df7d5781813e.tar.gz nx-libs-bb9ac3fd3f7069ca61d98e3a94d1df7d5781813e.tar.bz2 nx-libs-bb9ac3fd3f7069ca61d98e3a94d1df7d5781813e.zip |
hw/nxagent/Splash.c Fix build on 32bit architecture.
Regression fix for 427b7b9777727df4115e3e9e6e63d5176fb0b495. As suggested
by Ulrich Sibiller.
Fixes ArcticaProject/nx-libs#891.
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Splash.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Splash.c b/nx-X11/programs/Xserver/hw/nxagent/Splash.c index 323155299..91292470e 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Splash.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Splash.c @@ -26,14 +26,8 @@ #include "windowstr.h" #include "scrnintstr.h" -#ifdef _XSERVER64 - #include "Agent.h" -#define GC XlibGC - -#endif /* _XSERVER64 */ - #include "Xlib.h" #include "Xutil.h" @@ -67,14 +61,13 @@ Pixmap nxagentPixmapLogo; Window nxagentSplashWindow = None; Bool nxagentWMPassed = False; -static void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height); +static void nxagentPaintLogo(Window win, XlibGC gc, int scale, int width, int height); void nxagentShowSplashWindow(Window parentWindow) { XWindowAttributes getAttributes; XWindowChanges values; XSetWindowAttributes attributes; - GC gc; /* * Show splash window only when running as X2Go Agent @@ -149,7 +142,7 @@ void nxagentShowSplashWindow(Window parentWindow) nxagentSplashWindow); #endif - gc = XCreateGC(nxagentDisplay, nxagentSplashWindow, 0, NULL); + XlibGC gc = XCreateGC(nxagentDisplay, nxagentSplashWindow, 0, NULL); nxagentPaintLogo(nxagentSplashWindow, gc, 1, getAttributes.width, getAttributes.height); XMapRaised (nxagentDisplay, nxagentSplashWindow); values.stack_mode = Above; @@ -167,7 +160,7 @@ void nxagentShowSplashWindow(Window parentWindow) #endif } -void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height) +void nxagentPaintLogo(Window win, XlibGC gc, int scale, int width, int height) { int depth = DefaultDepth(nxagentDisplay, DefaultScreen(nxagentDisplay)); |