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:
Joachim Breuer
2022-04-12 19:33:45 +02:00
parent fe3acdf950
commit 9d0ddb12cb

View File

@@ -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;