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
This commit is contained in:
@@ -109,12 +109,8 @@ Screen::SetMode(uint16 width, uint16 height, uint32 colorspace,
|
|||||||
// search for a matching mode
|
// search for a matching mode
|
||||||
display_mode mode;
|
display_mode mode;
|
||||||
status_t status = _FindMode(width, height, colorspace, frequency, &mode);
|
status_t status = _FindMode(width, height, colorspace, frequency, &mode);
|
||||||
if (status < B_OK) {
|
if (status < B_OK)
|
||||||
// TODO: Move fallback elsewhere, this function should simply
|
return status;
|
||||||
// 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) {
|
if (status >= B_OK) {
|
||||||
float modeFrequency = get_mode_frequency(mode);
|
float modeFrequency = get_mode_frequency(mode);
|
||||||
|
|||||||
Reference in New Issue
Block a user