forked from bartvdbraak/blender
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.
This commit is contained in:
parent
8e2dd1c351
commit
9e30e7cdaf
@ -1038,6 +1038,10 @@ GHOST_TSuccess GHOST_SystemCocoa::handleWindowEvent(GHOST_TEventType eventType,
|
||||
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:
|
||||
|
@ -927,7 +927,6 @@ void GHOST_WindowCocoa::setNativePixelSize(void)
|
||||
getClientBounds(rect);
|
||||
|
||||
m_nativePixelSize = (float)backingBounds.size.width / (float)rect.getWidth();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user