From da10f2cf46547c826de759acaa03b2d6f0783dd2 Mon Sep 17 00:00:00 2001 From: Morgan Aldridge Date: Sat, 13 Mar 2021 10:01:41 -0500 Subject: [PATCH] More accurate rendering of resize boxes. Issue #16 --- mlvwm/borders.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mlvwm/borders.c b/mlvwm/borders.c index 56d6be0..93f37f3 100644 --- a/mlvwm/borders.c +++ b/mlvwm/borders.c @@ -887,26 +887,26 @@ void DrawResizeBox( MlvwmWindow *t, Bool on_off ) if( Scr.flags&SYSTEM8 ){ for(lp=0; lp<3; lp++ ){ XDrawLine( dpy, t->resize_b, Scr.WhiteGC, - 2+lp*3, 9+lp*3, 8+lp*3, 3+lp*3 ); + 3+lp*2, 8+lp*2, 7+lp*2, 4+lp*2 ); XDrawLine( dpy, t->resize_b, Scr.BlackGC, - 4+lp*3, 8+lp*3, 9+lp*3, 3+lp*3 ); + 4+lp*2, 8+lp*2, 8+lp*2, 4+lp*2 ); } } else{ - point = 6*SBAR_WH/19.+0.5; - scale = 9*SBAR_WH/19.+0.5; + point = 4*SBAR_WH/16.; + scale = 9*SBAR_WH/16.; DrawShadowBox( point, point, scale, scale, t->resize_b, 1, Scr.WhiteGC, Scr.BlackGC, SHADOW_ALL ); DrawShadowBox( point-1, point-1, scale+2, scale+2, t->resize_b, 1, Scr.BlackGC, Scr.WhiteGC, SHADOW_ALL ); - point = 3*SBAR_WH/19.+0.5; - scale = 8*SBAR_WH/19.+0.5; + point = 3*SBAR_WH/16.; + scale = 6*SBAR_WH/16.; XFillRectangle( dpy, t->resize_b, Scr.Gray4GC, point, point, scale, scale ); - point = 4*SBAR_WH/19.+0.5; - scale = 7*SBAR_WH/19.+0.5; + point = 3*SBAR_WH/16.; + scale = 5*SBAR_WH/16.; DrawShadowBox( point, point, scale, scale, t->resize_b, 1, Scr.WhiteGC, Scr.BlackGC, SHADOW_ALL ); DrawShadowBox( point-1, point-1, scale+2, scale+2, t->resize_b,