mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
it's rgb, not rbg
This commit is contained in:
parent
e5400d4e3d
commit
88f7b9ae84
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue