d'oh, got the return values backwards

This commit is contained in:
Bill Currie 2001-09-10 17:02:35 +00:00
parent 388513e005
commit 0f30506b79
1 changed files with 2 additions and 2 deletions

View File

@ -551,13 +551,13 @@ X11_GetWindowCoords (int *ax, int *ay)
if ((XGetGeometry (x_disp, x_win, &theroot, &x, &y, &width, &height, if ((XGetGeometry (x_disp, x_win, &theroot, &x, &y, &width, &height,
&bdwidth, &depth) == False)) { &bdwidth, &depth) == False)) {
Con_Printf ("XGetWindowAttributes failed in X11_GetWindowCoords.\n"); Con_Printf ("XGetWindowAttributes failed in X11_GetWindowCoords.\n");
return true; return false;
} else { } else {
XTranslateCoordinates (x_disp,x_win,theroot, -bdwidth, -bdwidth, XTranslateCoordinates (x_disp,x_win,theroot, -bdwidth, -bdwidth,
ax, ay, &scrap); ax, ay, &scrap);
Con_DPrintf ("Window coords = %dx%d (%d,%d)\n", *ax, *ay, Con_DPrintf ("Window coords = %dx%d (%d,%d)\n", *ax, *ay,
width, height); width, height);
return false; return true;
} }
#endif #endif
return false; return false;