From d461b955a139bf019185f773318a21eb22aab85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 16 Jul 2005 23:43:30 +0000 Subject: [PATCH] fixed my previous commit, it helps to read the diffs again... but this fallback needs to move somewhere else, as commented by the TODO git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13706 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerScreen.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/servers/app/ServerScreen.cpp b/src/servers/app/ServerScreen.cpp index 6f23d10106..2d77f81130 100644 --- a/src/servers/app/ServerScreen.cpp +++ b/src/servers/app/ServerScreen.cpp @@ -106,11 +106,10 @@ Screen::SetMode(uint16 width, uint16 height, uint32 colorspace, ret = _FindMode(width, height, colorspace, frequency, &mode); if (ret < B_OK) { + // TODO: Move fallback elsewhere, this function should simply + // fail if requested to set unsupported mode. // Ups. Not good. Ignore the requested mode and use fallback params. - mode.virtual_width = 640; - mode.virtual_height = 480; - mode.space = B_CMAP8; - ret = _FindMode(width, height, colorspace, frequency, &mode); + ret = _FindMode(640, 480, B_CMAP8, 60.0, &mode); } if (ret >= B_OK)