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 | e00df941fafcee05037a08f8cbb2d96b954d19d0 (patch) | |
tree | 9779d4c999b30e1a9c2dbf181c1456b5bb688cfc /src/video/cocoa/cocoa_v.mm | |
parent | b08db89d3067a4db9112e530b9b123fd92580e2d (diff) | |
download | openttd-e00df941fafcee05037a08f8cbb2d96b954d19d0.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/cocoa_v.mm')
-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); |