mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
randr: canonical walkScreenIdx variable on screen list iterations
When iterating screen lists, consistently use the same variable name `walkScreenIdx` for holding current screen index everywhere. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
3be2aeba4a
commit
31e7112138
@@ -67,18 +67,19 @@ RRClientCallback(CallbackListPtr *list, void *closure, void *data)
|
||||
|
||||
rrClientPriv(pClient);
|
||||
RRTimesPtr pTimes = (RRTimesPtr) (pRRClient + 1);
|
||||
int i;
|
||||
|
||||
pRRClient->major_version = 0;
|
||||
pRRClient->minor_version = 0;
|
||||
for (i = 0; i < screenInfo.numScreens; i++) {
|
||||
ScreenPtr walkScreen = screenInfo.screens[i];
|
||||
|
||||
unsigned int walkScreenIdx;
|
||||
for (walkScreenIdx = 0; walkScreenIdx < screenInfo.numScreens; walkScreenIdx++) {
|
||||
ScreenPtr walkScreen = screenInfo.screens[walkScreenIdx];
|
||||
|
||||
rrScrPriv(walkScreen);
|
||||
|
||||
if (pScrPriv) {
|
||||
pTimes[i].setTime = pScrPriv->lastSetTime;
|
||||
pTimes[i].configTime = pScrPriv->lastConfigTime;
|
||||
pTimes[walkScreenIdx].setTime = pScrPriv->lastSetTime;
|
||||
pTimes[walkScreenIdx].configTime = pScrPriv->lastConfigTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user