Fix build issue after recent graphics changes #1715

This commit is contained in:
Gordon Williams 2019-12-06 20:12:04 +00:00
parent 45ffa8e2c9
commit 1921e46c12

View File

@ -129,8 +129,8 @@ void graphicsStructInit(JsGraphics *gfx, int width, int height, int bpp) {
gfx->data.modMinY = 32767;
gfx->data.clipRect.x1 = 0;
gfx->data.clipRect.y1 = 0;
gfx->data.clipRect.x2 = LCD_WIDTH-1;
gfx->data.clipRect.y2 = LCD_HEIGHT-1;
gfx->data.clipRect.x2 = width-1;
gfx->data.clipRect.y2 = height-1;
#endif
}