rio: undo previous commit, was a stupid idea
This commit is contained in:
parent
a0d12784bd
commit
753a35b52a
3 changed files with 3 additions and 5 deletions
|
@ -325,7 +325,6 @@ Image *lightholdcol;
|
|||
Image *paleholdcol;
|
||||
Image *paletextcol;
|
||||
Image *sizecol;
|
||||
Image *badsizecol;
|
||||
int reverse; /* there are no pastel paints in the dungeons and dragons world -- rob pike */
|
||||
|
||||
Window **window;
|
||||
|
|
|
@ -196,7 +196,6 @@ iconinit(void)
|
|||
paleholdcol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, DPalegreyblue);
|
||||
paletextcol = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x666666FF^reverse);
|
||||
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)
|
||||
holdcol = dholdcol;
|
||||
|
|
|
@ -826,7 +826,7 @@ sweep(void)
|
|||
if(i == nil)
|
||||
goto Rescue;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
@ -947,8 +947,8 @@ bandsize(Window *w)
|
|||
riosetcursor(corners[which]);
|
||||
}
|
||||
r = whichrect(or, p, owhich);
|
||||
if(!eqrect(r, or)){
|
||||
drawborder(r, goodrect(r)?sizecol:badsizecol);
|
||||
if(!eqrect(r, or) && goodrect(r)){
|
||||
drawborder(r, sizecol);
|
||||
or = r;
|
||||
}
|
||||
readmouse(mousectl);
|
||||
|
|
Loading…
Reference in a new issue