Replace magic number 352 with VIEWPORT_HEIGHT (#1232)

This commit is contained in:
Manuel K
2019-06-02 18:51:33 +02:00
committed by Anders Jenbo
parent bac8701ad7
commit 896933f55e
13 changed files with 30 additions and 28 deletions
+2 -2
View File
@@ -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;
}