mirror of
https://github.com/morgant/mlvwm.git
synced 2024-12-29 14:29:22 +00:00
More accurate rendering of resize boxes. Issue #16
This commit is contained in:
parent
95da6807a5
commit
da10f2cf46
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user