mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-11 23:41:00 -10:00
Replace magic number 352 with VIEWPORT_HEIGHT (#1232)
This commit is contained in:
1 parent
bac8701ad7
commit
896933f55e
13 files changed
+30
-28
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user