mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-10 17:20:56 -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
+3
-3
@@ -190,8 +190,8 @@ void CheckCursMove()
|
||||
sx = 0;
|
||||
}
|
||||
}
|
||||
if(sy > 351 && track_isscrolling()) {
|
||||
sy = 351;
|
||||
if(sy > VIEWPORT_HEIGHT - 1 && track_isscrolling()) {
|
||||
sy = VIEWPORT_HEIGHT - 1;
|
||||
}
|
||||
if(!zoomflag) {
|
||||
sx >>= 1;
|
||||
@@ -271,7 +271,7 @@ void CheckCursMove()
|
||||
cursmy = my;
|
||||
return;
|
||||
}
|
||||
if(MouseY > 352) {
|
||||
if(MouseY > VIEWPORT_HEIGHT) {
|
||||
CheckPanelInfo();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user