it's rgb, not rbg

This commit is contained in:
Bill Currie 2002-12-11 05:33:54 +00:00
parent e5400d4e3d
commit 88f7b9ae84

View file

@ -524,13 +524,13 @@ SCR_ScreenShot (int width, int height)
w = (vid.width < width) ? vid.width : width; w = (vid.width < width) ? vid.width : width;
h = (vid.height < height) ? vid.height : height; h = (vid.height < height) ? vid.height : height;
fracw = (float) vid.width / (float) w;
frach = (float) vid.height / (float) h;
tex = malloc (field_offset (tex_t, data[w * h])); tex = malloc (field_offset (tex_t, data[w * h]));
if (!tex) if (!tex)
return 0; return 0;
fracw = (float) vid.width / (float) w;
frach = (float) vid.height / (float) h;
tex->width = w; tex->width = w;
tex->height = h; tex->height = h;
tex->palette = vid.palette; tex->palette = vid.palette;
@ -564,8 +564,8 @@ SCR_ScreenShot (int width, int height)
g /= count; g /= count;
b /= count; b /= count;
*dest++ = r; *dest++ = r;
*dest++ = b;
*dest++ = g; *dest++ = g;
*dest++ = b;
} }
} }