rio: undo previous commit, was a stupid idea

This commit is contained in:
cinap_lenrek 2020-12-06 15:08:23 +01:00
parent a0d12784bd
commit 753a35b52a
3 changed files with 3 additions and 5 deletions
sys/src/cmd/rio

View file

@ -325,7 +325,6 @@ Image *lightholdcol;
Image *paleholdcol; Image *paleholdcol;
Image *paletextcol; Image *paletextcol;
Image *sizecol; Image *sizecol;
Image *badsizecol;
int reverse; /* there are no pastel paints in the dungeons and dragons world -- rob pike */ int reverse; /* there are no pastel paints in the dungeons and dragons world -- rob pike */
Window **window; Window **window;

View file

@ -196,7 +196,6 @@ iconinit(void)
paleholdcol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DPalegreyblue); paleholdcol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DPalegreyblue);
paletextcol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x666666FF^reverse); paletextcol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x666666FF^reverse);
sizecol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DRed); sizecol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DRed);
badsizecol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x880000FF);
if(reverse == 0) if(reverse == 0)
holdcol = dholdcol; holdcol = dholdcol;

View file

@ -826,7 +826,7 @@ sweep(void)
if(i == nil) if(i == nil)
goto Rescue; goto Rescue;
oi = i; oi = i;
border(i, r, Selborder, goodrect(r)?sizecol:badsizecol, ZP); border(i, r, Selborder, sizecol, ZP);
draw(i, insetrect(r, Selborder), cols[BACK], nil, ZP); draw(i, insetrect(r, Selborder), cols[BACK], nil, ZP);
} }
} }
@ -947,8 +947,8 @@ bandsize(Window *w)
riosetcursor(corners[which]); riosetcursor(corners[which]);
} }
r = whichrect(or, p, owhich); r = whichrect(or, p, owhich);
if(!eqrect(r, or)){ if(!eqrect(r, or) && goodrect(r)){
drawborder(r, goodrect(r)?sizecol:badsizecol); drawborder(r, sizecol);
or = r; or = r;
} }
readmouse(mousectl); readmouse(mousectl);