Commit d0b1ee8e authored by Sam Lantinga's avatar Sam Lantinga

indent

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403516
parent 9bb60da0
...@@ -150,7 +150,7 @@ X11_SetDisplayGammaRamp(_THIS, Uint16 * ramp) ...@@ -150,7 +150,7 @@ X11_SetDisplayGammaRamp(_THIS, Uint16 * ramp)
} }
/* remember the new ramp */ /* remember the new ramp */
if (cmapTable[j].ramp == NULL) { if (cmapTable[j].ramp == NULL) {
Uint16 * newramp = SDL_malloc(SDL_GammaRampSize); Uint16 *newramp = SDL_malloc(SDL_GammaRampSize);
if (NULL == newramp) { if (NULL == newramp) {
SDL_SetError("Out of memory in X11_TrackColormap()"); SDL_SetError("Out of memory in X11_TrackColormap()");
return -1; return -1;
......
...@@ -265,7 +265,7 @@ X11_CreateWindow(_THIS, SDL_Window * window) ...@@ -265,7 +265,7 @@ X11_CreateWindow(_THIS, SDL_Window * window)
/* what if ncolors != (1 << nbits)? That can happen on a /* what if ncolors != (1 << nbits)? That can happen on a
true PseudoColor display. I'm assuming that we will true PseudoColor display. I'm assuming that we will
always have ncolors == (1 << nbits)*/ always have ncolors == (1 << nbits) */
/* I'm making a lot of assumptions here. */ /* I'm making a lot of assumptions here. */
...@@ -301,7 +301,8 @@ X11_CreateWindow(_THIS, SDL_Window * window) ...@@ -301,7 +301,8 @@ X11_CreateWindow(_THIS, SDL_Window * window)
for (r = 0; r < rmax; r++) { for (r = 0; r < rmax; r++) {
for (g = 0; g < gmax; g++) { for (g = 0; g < gmax; g++) {
for (b = 0; b < bmax; b++) { for (b = 0; b < bmax; b++) {
colorcells[pix].pixel = (r << rshift) | (g << gshift) | (b << bshift); colorcells[pix].pixel =
(r << rshift) | (g << gshift) | (b << bshift);
colorcells[pix].red = (0xffff * r) / rmask; colorcells[pix].red = (0xffff * r) / rmask;
colorcells[pix].green = (0xffff * g) / gmask; colorcells[pix].green = (0xffff * g) / gmask;
colorcells[pix].blue = (0xffff * b) / bmask; colorcells[pix].blue = (0xffff * b) / bmask;
......
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