Fix a bug in OpenGL sub-window placement when handlesWindowDecorations == YES

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@24803 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Xavier Glattard 2007-03-07 17:40:50 +00:00
parent 4ab4f101a5
commit bbd4ebe7d8

View file

@ -146,7 +146,7 @@ LRESULT CALLBACK win32SubwindowProc(
NSAssert(atom, @"MS window class not found !");
RECT parent_rect;
GetWindowRect((HWND)[win windowNumber], &parent_rect);
GetClientRect((HWND)[win windowNumber], &parent_rect);
x = NSMinX(rect);
y = (parent_rect.bottom - parent_rect.top) - NSMaxY(rect);
@ -221,7 +221,7 @@ LRESULT CALLBACK win32SubwindowProc(
}
RECT parent_rect;
GetWindowRect((HWND)[win windowNumber], &parent_rect);
GetClientRect((HWND)[win windowNumber], &parent_rect);
x = NSMinX(rect);
y = (parent_rect.bottom - parent_rect.top) - NSMaxY(rect);