diff options
author | smatz <smatz@openttd.org> | 2008-06-16 19:38:41 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-16 19:38:41 +0000 |
commit | 2299181c4be2a6d53eec62664c7a51e429c9f8a5 (patch) | |
tree | 9779d4c999b30e1a9c2dbf181c1456b5bb688cfc /src/video/cocoa | |
parent | 0c342f3292af7dd5f563e5bd053ff01bdcd32582 (diff) | |
download | openttd-2299181c4be2a6d53eec62664c7a51e429c9f8a5.tar.xz |
(svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions
Diffstat (limited to 'src/video/cocoa')
-rw-r--r-- | src/video/cocoa/cocoa_v.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index 1ffeff86d..e961bb8b6 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -206,8 +206,8 @@ static void QZ_UpdateVideoModes() count = _cocoa_subdriver->ListModes(modes, lengthof(modes)); for (i = 0; i < count; i++) { - _resolutions[i][0] = modes[i].x; - _resolutions[i][1] = modes[i].y; + _resolutions[i].width = modes[i].x; + _resolutions[i].height = modes[i].y; } _num_resolutions = count; @@ -317,8 +317,8 @@ const char *VideoDriver_Cocoa::Start(const char * const *parm) /* Don't create a window or enter fullscreen if we're just going to show a dialog. */ if (_cocoa_video_dialog) return NULL; - width = _cur_resolution[0]; - height = _cur_resolution[1]; + width = _cur_resolution.width; + height = _cur_resolution.height; bpp = BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth(); _cocoa_subdriver = QZ_CreateSubdriver(width, height, bpp, _fullscreen, true); |