Fix crasher in burnin code.

This commit is contained in:
Aaron Giles 2009-07-14 23:14:45 +00:00
parent 922a6fc563
commit 5f0436a948

View File

@ -2636,8 +2636,8 @@ static void video_update_burnin(running_machine *machine)
int dstheight = state->burnin->height;
int xstep = (srcwidth << 16) / dstwidth;
int ystep = (srcheight << 16) / dstheight;
int xstart = (rand() % 32767) * xstep / 32767;
int ystart = (rand() % 32767) * ystep / 32767;
int xstart = ((UINT32)rand() % 32767) * xstep / 32767;
int ystart = ((UINT32)rand() % 32767) * ystep / 32767;
int srcx, srcy;
int x, y;