Revision: 54005
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54005
Author: ton
Date: 2013-01-22 18:07:17 +0000 (Tue, 22 Jan 2013)
Log Message:
-----------
Bug fix #33911
When you open a Blender window larger than a screen, Macs clip it to match the
height,
but they allow the width to be more.
Problem is that this clipping happens after all window opening code. That causes
check for HiDPI mode to fail.
Now it checks it again on event GHOST_kEventWindowUpdate, which is only on
startup.
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2013-01-22
17:09:10 UTC (rev 54004)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2013-01-22
18:07:17 UTC (rev 54005)
@@ -1038,6 +1038,10 @@
pushEvent( new GHOST_Event(getMilliSeconds(),
GHOST_kEventWindowDeactivate, window) );
break;
case GHOST_kEventWindowUpdate:
+ if (m_nativePixel) {
+ window->setNativePixelSize();
+ pushEvent( new
GHOST_Event(getMilliSeconds(), GHOST_kEventNativeResolutionChange, window) );
+ }
pushEvent( new GHOST_Event(getMilliSeconds(),
GHOST_kEventWindowUpdate, window) );
break;
case GHOST_kEventWindowMove:
Modified: trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2013-01-22
17:09:10 UTC (rev 54004)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2013-01-22
18:07:17 UTC (rev 54005)
@@ -927,7 +927,6 @@
getClientBounds(rect);
m_nativePixelSize = (float)backingBounds.size.width /
(float)rect.getWidth();
-
}
/**
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs