mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
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:
parent
a069984c71
commit
d90df60282
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue