Replace magic number 352 with VIEWPORT_HEIGHT (#1232)
This commit is contained in:
parent
bac8701ad7
commit
896933f55e
13 changed files with 30 additions and 28 deletions
|
|
@ -2123,10 +2123,10 @@ void DrawLine(int x0, int y0, int x1, int y1, BYTE col)
|
|||
if (x1 < 0 + 64 || x1 >= 640 + 64) {
|
||||
gbNotInView = TRUE;
|
||||
}
|
||||
if (y0 < 0 + 160 || y0 >= 352 + 160) {
|
||||
if (y0 < 0 + 160 || y0 >= VIEWPORT_HEIGHT + 160) {
|
||||
gbNotInView = TRUE;
|
||||
}
|
||||
if (y1 < 0 + 160 || y1 >= 352 + 160) {
|
||||
if (y1 < 0 + 160 || y1 >= VIEWPORT_HEIGHT + 160) {
|
||||
gbNotInView = TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue