don't crash when doing a remote screenshot

This commit is contained in:
Bill Currie 2002-12-09 17:47:12 +00:00
parent 91266619f3
commit de7299a64f
2 changed files with 8 additions and 0 deletions

View file

@ -530,6 +530,10 @@ SCR_ScreenShot (int width, int height)
fracw = (float) vid.width / (float) w;
frach = (float) vid.height / (float) h;
tex->width = w;
tex->height = h;
tex->palette = vid.palette;
for (y = 0; y < h; y++) {
dest = tex->data + (w * 3 * y);

View file

@ -585,6 +585,10 @@ SCR_ScreenShot (int width, int height)
if (!tex)
return 0;
tex->width = w;
tex->height = h;
tex->palette = vid.palette;
for (y = 0; y < h; y++) {
dest = tex->data + (w * y);