Replace magic number 352 with VIEWPORT_HEIGHT (#1232)

This commit is contained in:
Manuel K authored and Anders Jenbo committed 2019-06-02 17:51:33 +01:00
1 parent bac8701ad7
commit 896933f55e
13 files changed
+30 -28

No files matched your search

+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;
}