diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-06-07 10:14:50 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2016-06-21 04:06:27 +0200 |
commit | b943cfe2afbd593e814de47b2f13f8b3b1af78da (patch) | |
tree | 54787a27baf87d7e4842aee60cb9c04881901898 /nx-X11/programs/Xserver/randr/rrinfo.c | |
parent | e2b0f279ec4932cde94a29e155a286b03a3d7c40 (diff) | |
download | nx-libs-b943cfe2afbd593e814de47b2f13f8b3b1af78da.tar.gz nx-libs-b943cfe2afbd593e814de47b2f13f8b3b1af78da.tar.bz2 nx-libs-b943cfe2afbd593e814de47b2f13f8b3b1af78da.zip |
Drop trailing whitespaces (randr extension)
sed -i "s/[ ]\+$//g" randr/*.{c,h}
happy reviewing...
git diff -w is an empty diff.
Diffstat (limited to 'nx-X11/programs/Xserver/randr/rrinfo.c')
-rw-r--r-- | nx-X11/programs/Xserver/randr/rrinfo.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/nx-X11/programs/Xserver/randr/rrinfo.c b/nx-X11/programs/Xserver/randr/rrinfo.c index 470e1bbf3..1f14c81f8 100644 --- a/nx-X11/programs/Xserver/randr/rrinfo.c +++ b/nx-X11/programs/Xserver/randr/rrinfo.c @@ -33,10 +33,10 @@ RROldModeAdd (RROutputPtr output, RRScreenSizePtr size, int refresh) RRModePtr mode; int i; RRModePtr *modes; - + memset (&modeInfo, '\0', sizeof (modeInfo)); sprintf (name, "%dx%d", size->width, size->height); - + modeInfo.width = size->width; modeInfo.height = size->height; modeInfo.hTotal = size->width; @@ -53,9 +53,9 @@ RROldModeAdd (RROutputPtr output, RRScreenSizePtr size, int refresh) RRModeDestroy (mode); return mode; } - + if (output->numModes) - modes = xrealloc (output->modes, + modes = xrealloc (output->modes, (output->numModes + 1) * sizeof (RRModePtr)); else modes = xalloc (sizeof (RRModePtr)); @@ -84,7 +84,7 @@ RRScanOldConfig (ScreenPtr pScreen, Rotation rotations) CARD16 minWidth = MAXSHORT, minHeight = MAXSHORT; CARD16 maxWidth = 0, maxHeight = 0; CARD16 width, height; - + /* * First time through, create a crtc and output and hook * them together @@ -131,7 +131,7 @@ RRScanOldConfig (ScreenPtr pScreen, Rotation rotations) for (r = 0; r < size->nRates; r++) { mode = RROldModeAdd (output, size, size->pRates[r].rate); - if (i == pScrPriv->size && + if (i == pScrPriv->size && size->pRates[r].rate == pScrPriv->rate) { newMode = mode; @@ -150,12 +150,12 @@ RRScanOldConfig (ScreenPtr pScreen, Rotation rotations) xfree (pScrPriv->pSizes); pScrPriv->pSizes = NULL; pScrPriv->nSizes = 0; - + /* find size bounds */ - for (i = 0; i < output->numModes + output->numUserModes; i++) + for (i = 0; i < output->numModes + output->numUserModes; i++) { - mode = (i < output->numModes ? - output->modes[i] : + mode = (i < output->numModes ? + output->modes[i] : output->userModes[i-output->numModes]); width = mode->mode.width; height = mode->mode.height; @@ -189,11 +189,11 @@ RRGetInfo (ScreenPtr pScreen) pScrPriv->outputs[i]->changed = FALSE; for (i = 0; i < pScrPriv->numCrtcs; i++) pScrPriv->crtcs[i]->changed = FALSE; - + rotations = 0; pScrPriv->changed = FALSE; pScrPriv->configChanged = FALSE; - + if (!(*pScrPriv->rrGetInfo) (pScreen, &rotations)) return FALSE; @@ -251,7 +251,7 @@ RRScreenSizeMatches (RRScreenSizePtr a, RRScreenSizePtr RRRegisterSize (ScreenPtr pScreen, - short width, + short width, short height, short mmWidth, short mmHeight) @@ -263,7 +263,7 @@ RRRegisterSize (ScreenPtr pScreen, if (!pScrPriv) return 0; - + tmp.id = 0; tmp.width = width; tmp.height= height; @@ -293,7 +293,7 @@ Bool RRRegisterRate (ScreenPtr pScreen, if (!pScrPriv) return FALSE; - + for (i = 0; i < pSize->nRates; i++) if (pSize->pRates[i].rate == rate) return TRUE; |