diff --git a/hw/display/bcm2835_fb.c b/hw/display/bcm2835_fb.c index ac17c472a596f06d1ee150c530d303b09ea27444..82d3071d3eaba03891186fe1586ba77fcef9f66d 100644 --- a/hw/display/bcm2835_fb.c +++ b/hw/display/bcm2835_fb.c @@ -145,7 +145,7 @@ static bool fb_use_offsets(BCM2835FBConfig *config) * viewport size is larger than the physical screen. (It doesn't * prevent the guest setting this silly viewport setting, though...) */ - return config->xres_virtual > config->xres && + return config->xres_virtual > config->xres || config->yres_virtual > config->yres; }