Small fix to prevent a division by zero.
This commit is contained in:
1 parent
026e647e88
commit
73d922a9a5
1 file changed
+1
-1
+1
-1
@@ -208,7 +208,7 @@ render_frame (LinkedList * list,
|
||||
screenlist_action = 0;
|
||||
}
|
||||
|
||||
fy %= fhgt;
|
||||
if (fhgt == 0) { fy = 0; } else { fy %= fhgt; }
|
||||
if (fy > fhgt - vis_height)
|
||||
fy = fhgt - vis_height;
|
||||
|
||||
|
||||
Reference in new issue
Block a user