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;
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]));
if (!tex)
return 0;
fracw = (float) vid.width / (float) w;
frach = (float) vid.height / (float) h;
tex->width = w;
tex->height = h;
tex->palette = vid.palette;
@ -564,8 +564,8 @@ SCR_ScreenShot (int width, int height)
g /= count;
b /= count;
*dest++ = r;
*dest++ = b;
*dest++ = g;
*dest++ = b;
}
}