mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
Fix crasher in burnin code.
This commit is contained in:
parent
922a6fc563
commit
5f0436a948
@ -2636,8 +2636,8 @@ static void video_update_burnin(running_machine *machine)
|
|||||||
int dstheight = state->burnin->height;
|
int dstheight = state->burnin->height;
|
||||||
int xstep = (srcwidth << 16) / dstwidth;
|
int xstep = (srcwidth << 16) / dstwidth;
|
||||||
int ystep = (srcheight << 16) / dstheight;
|
int ystep = (srcheight << 16) / dstheight;
|
||||||
int xstart = (rand() % 32767) * xstep / 32767;
|
int xstart = ((UINT32)rand() % 32767) * xstep / 32767;
|
||||||
int ystart = (rand() % 32767) * ystep / 32767;
|
int ystart = ((UINT32)rand() % 32767) * ystep / 32767;
|
||||||
int srcx, srcy;
|
int srcx, srcy;
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user