Commit 06638575 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Screen.c: formatting fixes

parent 66eea14c
...@@ -3289,11 +3289,11 @@ FIXME: The port information is not used at the moment and produces a ...@@ -3289,11 +3289,11 @@ FIXME: The port information is not used at the moment and produces a
{ {
local_buf[in] = pszReturnData[i]; local_buf[in] = pszReturnData[i];
if(pszReturnData[i] == ':') if (pszReturnData[i] == ':')
{ {
i++; i++;
while(pszReturnData[i] != '\n') while (pszReturnData[i] != '\n')
{ {
unsigned char h = fromHexNibble(pszReturnData[i]); unsigned char h = fromHexNibble(pszReturnData[i]);
i++; i++;
...@@ -3302,7 +3302,8 @@ FIXME: The port information is not used at the moment and produces a ...@@ -3302,7 +3302,8 @@ FIXME: The port information is not used at the moment and produces a
unsigned char l = fromHexNibble(pszReturnData[i]); unsigned char l = fromHexNibble(pszReturnData[i]);
i++; i++;
if(h >= 16 || l >= 16) continue; if (h >= 16 || l >= 16)
continue;
/* /*
* FIXME: The array tchar[] was used uninitialized. It's * FIXME: The array tchar[] was used uninitialized. It's
...@@ -3349,7 +3350,7 @@ FIXME: The port information is not used at the moment and produces a ...@@ -3349,7 +3350,7 @@ FIXME: The port information is not used at the moment and produces a
strcat(local_buf,"00"); strcat(local_buf,"00");
in += 2; in += 2;
while(pszReturnData[i] != '\n') while (pszReturnData[i] != '\n')
{ {
i++; i++;
} }
...@@ -4011,9 +4012,9 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen) ...@@ -4011,9 +4012,9 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
distinguish between pre-existing modes which should stay distinguish between pre-existing modes which should stay
and our own modes that should be removed after use. */ and our own modes that should be removed after use. */
char name[100]; char name[100];
sprintf(name, "%s%dx%d", QUOTE(NXAGENT_RANDR_MODE_PREFIX), new_w, new_h); sprintf(name, "%s%dx%d", QUOTE(NXAGENT_RANDR_MODE_PREFIX), new_w, new_h);
const int refresh = 60; const int refresh = 60;
xRRModeInfo modeInfo = { xRRModeInfo modeInfo = {
.width = new_w, .width = new_w,
...@@ -4022,7 +4023,7 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen) ...@@ -4022,7 +4023,7 @@ int nxagentAdjustRandRXinerama(ScreenPtr pScreen)
.vTotal = new_h, .vTotal = new_h,
.dotClock = ((CARD32) new_w * (CARD32) new_h * (CARD32) refresh), .dotClock = ((CARD32) new_w * (CARD32) new_h * (CARD32) refresh),
.nameLength = strlen(name) .nameLength = strlen(name)
}; };
RRModePtr mymode = RRModeGet(&modeInfo, name); RRModePtr mymode = RRModeGet(&modeInfo, name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment