summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Breuer <git@jmbreuer.net>2022-04-12 19:33:45 +0200
committerJoachim Breuer <git@jmbreuer.net>2022-04-12 19:40:05 +0200
commit9d0ddb12cb74a04ccd007ad884137a4fdaf39b44 (patch)
treeaa38c29c864a7734457f30dde09d4468f3e61b4d
parentfe3acdf9503b836111fb20c4839a25562d0484f7 (diff)
Initialize pScrn->{width, height} from primary
... instead of pScrn->currentMode, the latter is not initialized in xorg-server-21.1.3
-rw-r--r--src/qxl_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 80d021b..009e79a 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -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;