diff --git a/code/nel/src/3d/driver/opengl/mac/cocoa_opengl_view.m b/code/nel/src/3d/driver/opengl/mac/cocoa_opengl_view.m index 9bcec1714..8ad1f91d4 100644 --- a/code/nel/src/3d/driver/opengl/mac/cocoa_opengl_view.m +++ b/code/nel/src/3d/driver/opengl/mac/cocoa_opengl_view.m @@ -23,8 +23,8 @@ namespace NL3D void viewDidResize(NSView* view, CDriverGL* driver) { NSRect rect = [[view superview] frame]; - driver->_WindowWidth = rect.size.width; - driver->_WindowHeight = rect.size.height; + driver->_CurrentMode.Height = rect.size.height; + driver->_CurrentMode.Width = rect.size.width; } }