mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 12:40:42 +00:00
d'oh, got the return values backwards
This commit is contained in:
parent
388513e005
commit
0f30506b79
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue