src/video/cocoa/cocoa_v.mm
branchNewGRF_ports
changeset 10994 cd9968b6f96b
parent 10724 68a692eacf22
--- a/src/video/cocoa/cocoa_v.mm	Tue Jun 17 10:32:49 2008 +0000
+++ b/src/video/cocoa/cocoa_v.mm	Tue Jun 17 13:22:13 2008 +0000
@@ -206,8 +206,8 @@
 	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 @@
 	/* 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);