fix issue with negative dirty blocks

This commit is contained in:
zsilencer 2015-07-10 20:50:31 -06:00
parent 11a98d2e23
commit a58458bbb3
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ uint8* gfx_get_dirty_blocks()
* right (dx)
* bottom (bp)
*/
void gfx_set_dirty_blocks(uint16 left, uint16 top, uint16 right, uint16 bottom)
void gfx_set_dirty_blocks(sint16 left, sint16 top, sint16 right, sint16 bottom)
{
int x, y;
uint8 *screenDirtyBlocks = gfx_get_dirty_blocks();

View File

@ -80,7 +80,7 @@ extern rct_gx g2;
//
rct_drawpixelinfo* clip_drawpixelinfo(rct_drawpixelinfo* dpi, int left, int width, int top, int height);
void gfx_set_dirty_blocks(uint16 left, uint16 top, uint16 right, uint16 bottom);
void gfx_set_dirty_blocks(sint16 left, sint16 top, sint16 right, sint16 bottom);
void gfx_draw_all_dirty_blocks();
void gfx_redraw_screen_rect(short left, short top, short right, short bottom);
void gfx_invalidate_screen();