mirror of
https://github.com/pevans/erc-c.git
synced 2026-10-22 04:02:15 +00:00
Reject -1 rows and columns
This commit is contained in:
1 parent
543e3d0b73
commit
5dcc25f5eb
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user