diff options
author | egladil <egladil@openttd.org> | 2007-12-29 05:15:13 +0000 |
---|---|---|
committer | egladil <egladil@openttd.org> | 2007-12-29 05:15:13 +0000 |
commit | 6ae93027083cf202741397d7a6584d628448ba89 (patch) | |
tree | dbb755e5300cf30bb52c4ff019321dbbaabb81f7 /src/video/cocoa/wnd_quickdraw.mm | |
parent | 108ab3b91066ec1f97770401ba31f0afb681e794 (diff) | |
download | openttd-6ae93027083cf202741397d7a6584d628448ba89.tar.xz |
(svn r11718) -Fix [FS#1483]: Show the fullscreen modes available to the cocoa driver in windowed mode too.
Diffstat (limited to 'src/video/cocoa/wnd_quickdraw.mm')
-rw-r--r-- | src/video/cocoa/wnd_quickdraw.mm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/video/cocoa/wnd_quickdraw.mm b/src/video/cocoa/wnd_quickdraw.mm index a331398d0..6c30900d0 100644 --- a/src/video/cocoa/wnd_quickdraw.mm +++ b/src/video/cocoa/wnd_quickdraw.mm @@ -685,12 +685,7 @@ void WindowQuickdrawSubdriver::UpdatePalette(uint first_color, uint num_colors) uint WindowQuickdrawSubdriver::ListModes(OTTD_Point* modes, uint max_modes) { - if (max_modes == 0) return 0; - - modes[0].x = window_width; - modes[0].y = window_height; - - return 1; + return QZ_ListModes(modes, max_modes, kCGDirectMainDisplay, buffer_depth); } bool WindowQuickdrawSubdriver::ChangeResolution(int w, int h) |