RANDR 1.2: Fix the RANDR 1.1 screen size estimation to approach reality.
While the ScreenRec's notion of size in millimeters would get updates, the RANDR 1.1 notion wouldn't, so your screen would appear to be square and probably at some ludicrous DPI.
This commit is contained in:
parent
e4dee1626d
commit
95f6d8822d
|
@ -341,8 +341,8 @@ xf86RandR12ScreenSetSize (ScreenPtr pScreen,
|
||||||
|
|
||||||
pScreen->width = pScrnPix->drawable.width = width;
|
pScreen->width = pScrnPix->drawable.width = width;
|
||||||
pScreen->height = pScrnPix->drawable.height = height;
|
pScreen->height = pScrnPix->drawable.height = height;
|
||||||
pScreen->mmWidth = mmWidth;
|
randrp->mmWidth = pScreen->mmWidth = mmWidth;
|
||||||
pScreen->mmHeight = mmHeight;
|
randrp->mmHeight = pScreen->mmHeight = mmHeight;
|
||||||
|
|
||||||
xf86SetViewport (pScreen, pScreen->width-1, pScreen->height-1);
|
xf86SetViewport (pScreen, pScreen->width-1, pScreen->height-1);
|
||||||
xf86SetViewport (pScreen, 0, 0);
|
xf86SetViewport (pScreen, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user