From 643801426cec874a4f5309a6eb4bd562f90698cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 18 Oct 2007 13:41:18 +0000 Subject: [PATCH] As the commit says, don't do this at this place. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22613 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerScreen.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/servers/app/ServerScreen.cpp b/src/servers/app/ServerScreen.cpp index f29cc31de1..5b4053a44c 100644 --- a/src/servers/app/ServerScreen.cpp +++ b/src/servers/app/ServerScreen.cpp @@ -109,12 +109,8 @@ Screen::SetMode(uint16 width, uint16 height, uint32 colorspace, // search for a matching mode display_mode mode; status_t status = _FindMode(width, height, colorspace, frequency, &mode); - if (status < 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. - status = _FindMode(640, 480, B_CMAP8, 60.0, &mode); - } + if (status < B_OK) + return status; if (status >= B_OK) { float modeFrequency = get_mode_frequency(mode);