ref: 0a8f122f72113c7e3ef20956b5fa23f69af889ad
parent: 3b70bbe366fade45f41fed2ef13b87fa675709b5
author: qwx <>
date: Thu Jul 13 02:05:43 EDT 2017
wl3d: increase max scale and don't set repl unless needed
--- a/wl3d.c
+++ b/wl3d.c
@@ -139,8 +139,8 @@
scale = Dx(screen->r) / Vw;
if(scale <= 0)
scale = 1;
- else if(scale > 10)
- scale = 10;
+ else if(scale > 12)
+ scale = 12;
p = divpt(addpt(screen->r.min, screen->r.max), 2);
d = Pt(Vw/2 * scale, Vh/2 * scale);
fbr = Rpt(subpt(p, d), addpt(p, d));
@@ -152,7 +152,7 @@
free(px);
npx = Vt * scale;
px = emalloc(npx);
- fb = allocimage(display, Rect(0,0,Vw*scale,scale==1 ? Vh : 1), RGB24, 1, 0);
+ fb = allocimage(display, Rect(0,0,Vw*scale,scale==1 ? Vh : 1), RGB24, scale!=1, 0);
if(fb == nil)
sysfatal("resetfb: %r");