mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 23:29:16 +00:00
Reject -1 rows and columns
This commit is contained in:
parent
543e3d0b73
commit
5dcc25f5eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user