Never (!) only ask for a specific error code, and assume everything went okay if it isn't reported.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12805 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-05-25 01:51:13 +00:00
parent 8adcce5097
commit b368a1cb0b
+1 -3
View File
@@ -54,9 +54,7 @@ bool Screen::SupportsResolution(BPoint res, uint32 colorspace)
uint32 count; uint32 count;
status_t err = fDDriver->GetModeList(&dm, &count); status_t err = fDDriver->GetModeList(&dm, &count);
if (err < B_OK) {
if(err==B_UNSUPPORTED)
{
// We've run into quite a problem here! This is a function which is a requirement // We've run into quite a problem here! This is a function which is a requirement
// for a graphics module. The best thing that we can hope for is 640x480x8 without // for a graphics module. The best thing that we can hope for is 640x480x8 without
// knowing anything else. While even this seems like insanity to assume that we // knowing anything else. While even this seems like insanity to assume that we