diff --git a/source/Irrlicht/CIrrDeviceOSX.mm b/source/Irrlicht/CIrrDeviceOSX.mm index 0be15bb3..c307fd7c 100644 --- a/source/Irrlicht/CIrrDeviceOSX.mm +++ b/source/Irrlicht/CIrrDeviceOSX.mm @@ -821,6 +821,8 @@ void CIrrDeviceMacOSX::setResize(int width, int height) { NSRect driverFrame = [Window contentRectForFrameRect:[Window frame]]; getVideoDriver()->OnResize(core::dimension2d( (s32)driverFrame.size.width, (s32)driverFrame.size.height)); + DeviceWidth = (s32)driverFrame.size.width; + DeviceHeight = (s32)driverFrame.size.height; } else getVideoDriver()->OnResize(core::dimension2d( (s32)width, (s32)height));