mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
* Source/win32/w32_GLContext.m:
* Source/x11/XGGLContext.m: Apply fix for bug 29705: OpenGL subwindow positioning error (OpenGL subwindow position was incorrectly calculated when the window content view was flipped) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31029 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0b249e778b
commit
440de8d9b2
3 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2010-07-25 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/win32/w32_GLContext.m:
|
||||
* Source/x11/XGGLContext.m:
|
||||
Apply fix for bug 29705: OpenGL subwindow positioning error
|
||||
(OpenGL subwindow position was incorrectly calculated when
|
||||
the window content view was flipped)
|
||||
|
||||
2010-07-25 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGServerEvent.m:
|
||||
|
|
|
@ -137,6 +137,10 @@ LRESULT CALLBACK win32SubwindowProc(
|
|||
* we must therefore use content view coordinates.
|
||||
*/
|
||||
rect = [view convertRect: [view bounds] toView: [[attached window] contentView]];
|
||||
if ([[[attached window] contentView] isFlipped])
|
||||
{
|
||||
rect.origin.y = NSHeight([[[attached window] contentView] frame]) - (rect.size.height + rect.origin.y);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -210,6 +214,10 @@ LRESULT CALLBACK win32SubwindowProc(
|
|||
*/
|
||||
rect = [attached convertRect: [attached bounds]
|
||||
toView: [[attached window] contentView]];
|
||||
if ([[[attached window] contentView] isFlipped])
|
||||
{
|
||||
rect.origin.y = NSHeight([[[attached window] contentView] frame]) - (rect.size.height + rect.origin.y);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -104,6 +104,10 @@
|
|||
*/
|
||||
rect = [view convertRect: [view bounds]
|
||||
toView: [window contentView]];
|
||||
if ([[window contentView] isFlipped])
|
||||
{
|
||||
rect.origin.y = NSHeight([[window contentView] frame]) - (rect.size.height + rect.origin.y);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -194,6 +198,10 @@
|
|||
*/
|
||||
rect = [attached convertRect: [attached bounds]
|
||||
toView: [[attached window] contentView]];
|
||||
if ([[[attached window] contentView] isFlipped])
|
||||
{
|
||||
rect.origin.y = NSHeight([[[attached window] contentView] frame]) - (rect.size.height + rect.origin.y);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue