Ignore 0 line blits.
This commit is contained in:
parent
7531b95e83
commit
b90b5b7d7d
1 changed files with 2 additions and 0 deletions
|
|
@ -522,6 +522,8 @@ void video_wait_for_buffer()
|
||||||
|
|
||||||
void video_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h)
|
void video_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h)
|
||||||
{
|
{
|
||||||
|
if (h <= 0)
|
||||||
|
return;
|
||||||
video_wait_for_blit();
|
video_wait_for_blit();
|
||||||
blit_data.busy = 1;
|
blit_data.busy = 1;
|
||||||
blit_data.buffer_in_use = 1;
|
blit_data.buffer_in_use = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue