mirror of
https://github.com/X11Libre/xf86-video-qxl.git
synced 2026-03-24 01:24:24 +00:00
Initialize pScrn->{width, height} from primary
... instead of pScrn->currentMode, the latter is not initialized in xorg-server-21.1.3
This commit is contained in:
@@ -807,8 +807,8 @@ qxl_screen_init (SCREEN_INIT_ARGS_DECL)
|
||||
|
||||
CHECK_POINT ();
|
||||
|
||||
pScreen->width = pScrn->currentMode->HDisplay;
|
||||
pScreen->height = pScrn->currentMode->VDisplay;
|
||||
pScreen->width = qxl->primary_mode.x_res;
|
||||
pScreen->height = qxl->primary_mode.y_res;
|
||||
|
||||
if (!xf86CrtcScreenInit (pScreen))
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user