fb: fix check for framebuffer size
authorMirakels <mirakels@openpli.org>
Thu, 10 Dec 2015 12:55:41 +0000 (13:55 +0100)
committerMirakels <mirakels@openpli.org>
Thu, 10 Dec 2015 12:55:41 +0000 (13:55 +0100)
lib/gdi/fb.cpp

index 4ee922e..d08c5b3 100644 (file)
@@ -151,7 +151,7 @@ int fbClass::SetMode(int nxRes, int nyRes, int nbpp)
 
        ioctl(fbFd, FBIOGET_VSCREENINFO, &screeninfo);
 
-       if ((screeninfo.xres!=nxRes) && (screeninfo.yres!=nyRes) && (screeninfo.bits_per_pixel!=nbpp))
+       if ((screeninfo.xres!=nxRes) || (screeninfo.yres!=nyRes) || (screeninfo.bits_per_pixel!=nbpp))
        {
                eDebug("[fb] SetMode failed: wanted: %dx%dx%d, got %dx%dx%d",
                        nxRes, nyRes, nbpp,