summaryrefslogtreecommitdiff
path: root/src/video/cocoa
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-06 23:02:10 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-14 11:50:18 +0100
commit8906e9e0fd6dc7bd64f9ad2c633da6f110dbf921 (patch)
tree1e7af880ab09e61409a8891384a75f56c32a4e81 /src/video/cocoa
parentb66e977acd6790d2e7c26d39f17ac5158b499167 (diff)
downloadopenttd-8906e9e0fd6dc7bd64f9ad2c633da6f110dbf921.tar.xz
Codechange: Consistently use screen size and not driver resolution for determining window sizes.
Diffstat (limited to 'src/video/cocoa')
-rw-r--r--src/video/cocoa/cocoa_v.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm
index 5493c0652..c1fb996de 100644
--- a/src/video/cocoa/cocoa_v.mm
+++ b/src/video/cocoa/cocoa_v.mm
@@ -270,7 +270,7 @@ bool VideoDriver_Cocoa::ToggleFullscreen(bool full_screen)
*/
bool VideoDriver_Cocoa::AfterBlitterChange()
{
- this->ChangeResolution(_screen.width, _screen.height);
+ this->ChangeResolution(_cur_resolution.width, _cur_resolution.height);
this->UpdatePalette(0, 256);
return true;
}