(svn r11718) -Fix [FS#1483]: Show the fullscreen modes available to the cocoa driver in windowed mode too.

This commit is contained in:
egladil
2007-12-29 05:15:13 +00:00
parent 13ffc5b581
commit bb45f46355
4 changed files with 85 additions and 86 deletions

View File

@@ -660,12 +660,7 @@ void WindowQuartzSubdriver::UpdatePalette(uint first_color, uint num_colors)
uint WindowQuartzSubdriver::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 WindowQuartzSubdriver::ChangeResolution(int w, int h)