shithub: sce

Download patch

ref: e25615d46e7054218e7c4f2fb28a387d5e694a4a
parent: b6b6450f8124515cd61191ca5dd5dd2244d689c0
author: qwx <qwx@sciops.net>
date: Thu Mar 12 05:57:48 EDT 2020

drw: fix vertical panning beyond map

--- a/drw.c
+++ b/drw.c
@@ -220,7 +220,7 @@
 	panmax.x = max(Tlwidth * mapwidth * scale - Dx(screen->r), 0);
 	panmax.y = max(Tlheight * mapheight * scale - Dy(screen->r), 0);
 	if(p0.y < selr.max.y){
-		panmax.y += (selr.max.y - p0.y) * scale;
+		panmax.y += selr.max.y - p0.y;
 		selr.max.y = p0.y;
 	}
 	fbh /= scale;