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
+3 -3
View File
@@ -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;
}