mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
dri2: declare variables where needed in DRI2ConfigNotify()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
5bbb0201f4
commit
03e239a823
@@ -1355,12 +1355,11 @@ DRI2ConfigNotify(WindowPtr pWin, int x, int y, int w, int h, int bw,
|
|||||||
ScreenPtr pScreen = pDraw->pScreen;
|
ScreenPtr pScreen = pDraw->pScreen;
|
||||||
DRI2ScreenPtr ds = DRI2GetScreen(pScreen);
|
DRI2ScreenPtr ds = DRI2GetScreen(pScreen);
|
||||||
DRI2DrawablePtr dd = DRI2GetDrawable(pDraw);
|
DRI2DrawablePtr dd = DRI2GetDrawable(pDraw);
|
||||||
int ret;
|
|
||||||
|
|
||||||
if (ds->ConfigNotify) {
|
if (ds->ConfigNotify) {
|
||||||
pScreen->ConfigNotify = ds->ConfigNotify;
|
pScreen->ConfigNotify = ds->ConfigNotify;
|
||||||
|
|
||||||
ret = (*pScreen->ConfigNotify) (pWin, x, y, w, h, bw, pSib);
|
int ret = pScreen->ConfigNotify(pWin, x, y, w, h, bw, pSib);
|
||||||
|
|
||||||
ds->ConfigNotify = pScreen->ConfigNotify;
|
ds->ConfigNotify = pScreen->ConfigNotify;
|
||||||
pScreen->ConfigNotify = DRI2ConfigNotify;
|
pScreen->ConfigNotify = DRI2ConfigNotify;
|
||||||
|
|||||||
Reference in New Issue
Block a user