1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-06-25 12:29:34 +00:00

Reject -1 rows and columns

This commit is contained in:
Peter Evans 2018-03-12 00:33:22 -05:00
parent 543e3d0b73
commit 5dcc25f5eb

View File

@ -54,6 +54,10 @@ apple2_lores_draw(apple2 *mach, size_t addr)
int row = apple2_text_row(addr),
col = apple2_text_col(addr);
if (row == -1 || col == -1) {
return;
}
// In low-resolution mode, the row number is analagous to the text
// row number, like so:
row *= 2;