mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-01 22:03:09 +00:00
Separate out screen size and screen pixmap sizes in RRScreenSizeSet
This provides for separate sizes for the screen scanout and rendering buffer and the application-visible screen size. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
parent
a88d70fb20
commit
752c368421
6 changed files with 96 additions and 41 deletions
|
|
@ -168,6 +168,8 @@ Bool
|
|||
RRScreenSizeSet (ScreenPtr pScreen,
|
||||
CARD16 width,
|
||||
CARD16 height,
|
||||
CARD16 pixWidth,
|
||||
CARD16 pixHeight,
|
||||
CARD32 mmWidth,
|
||||
CARD32 mmHeight)
|
||||
{
|
||||
|
|
@ -178,6 +180,7 @@ RRScreenSizeSet (ScreenPtr pScreen,
|
|||
{
|
||||
return (*pScrPriv->rrScreenSetSize) (pScreen,
|
||||
width, height,
|
||||
pixWidth, pixHeight,
|
||||
mmWidth, mmHeight);
|
||||
}
|
||||
#endif
|
||||
|
|
@ -317,6 +320,7 @@ ProcRRSetScreenSize (ClientPtr client)
|
|||
return BadValue;
|
||||
}
|
||||
if (!RRScreenSizeSet (pScreen,
|
||||
stuff->width, stuff->height,
|
||||
stuff->width, stuff->height,
|
||||
stuff->widthInMillimeters,
|
||||
stuff->heightInMillimeters))
|
||||
|
|
@ -949,7 +953,7 @@ ProcRRSetScreenConfig (ClientPtr client)
|
|||
goto sendReply;
|
||||
}
|
||||
}
|
||||
if (!RRScreenSizeSet (pScreen, width, height,
|
||||
if (!RRScreenSizeSet (pScreen, width, height, width, height,
|
||||
pScreen->mmWidth, pScreen->mmHeight))
|
||||
{
|
||||
rep.status = RRSetConfigFailed;
|
||||
|
|
|
|||
Loading…
Reference in a new issue