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:
@@ -54,9 +54,7 @@ bool Screen::SupportsResolution(BPoint res, uint32 colorspace)
|
||||
uint32 count;
|
||||
|
||||
status_t err = fDDriver->GetModeList(&dm, &count);
|
||||
|
||||
if(err==B_UNSUPPORTED)
|
||||
{
|
||||
if (err < B_OK) {
|
||||
// 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
|
||||
// knowing anything else. While even this seems like insanity to assume that we
|
||||
|
||||
Reference in New Issue
Block a user