mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
Xext: panoramix: cache screen pointer
locally cache the screen pointer in local variable. follow-up commits will use a generic helper function for retrieving it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
0d152c44f0
commit
3880670da1
@ -982,10 +982,12 @@ ProcPanoramiXGetScreenSize(ClientPtr client)
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
ScreenPtr pScreen = screenInfo.screens[stuff->screen];
|
||||
|
||||
xPanoramiXGetScreenSizeReply reply = {
|
||||
/* screen dimensions */
|
||||
.width = screenInfo.screens[stuff->screen]->width,
|
||||
.height = screenInfo.screens[stuff->screen]->height,
|
||||
.width = pScreen->width,
|
||||
.height = pScreen->height,
|
||||
.window = stuff->window,
|
||||
.screen = stuff->screen
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user