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
This commit is contained in:
parent
aeaa4a21a4
commit
d461b955a1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user