--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403516
This commit is contained in:
Sam Lantinga 2009-01-30 06:38:44 +00:00
parent 9bb60da027
commit d0b1ee8e2f
2 changed files with 52 additions and 51 deletions

View file

@ -301,7 +301,8 @@ X11_CreateWindow(_THIS, SDL_Window * window)
for (r = 0; r < rmax; r++) {
for (g = 0; g < gmax; g++) {
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].green = (0xffff * g) / gmask;
colorcells[pix].blue = (0xffff * b) / bmask;