Skip to content

Commit

Permalink
fb: fix check for framebuffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
mirakels committed Dec 10, 2015
1 parent a19d7a5 commit 71e2eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gdi/fb.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 71e2eed

Please sign in to comment.