- clipped selection circle in colorpicker to prevent it drawing outside

the color plane
- removed warnings from glutil.c, made circleXOR call become float instead
  of short
- fixed error in drawing text of buttons in pop-up menus, when zoomed small
This commit is contained in:
2004-07-05 10:22:00 +00:00
parent 3cade4dad6
commit a910ff343e
4 changed files with 19 additions and 13 deletions

View File

@@ -1579,8 +1579,12 @@ static void ui_draw_but_HSVCUBE(uiBut *but)
glShadeModel(GL_FLAT);
/* cursor */
sdrawXORcirc((short)(but->x1 + x*(but->x2-but->x1)),
(short)(but->y1 + y*(but->y2-but->y1)), 3.0);
x= but->x1 + x*(but->x2-but->x1);
y= but->y1 + y*(but->y2-but->y1);
CLAMP(x, but->x1+3.0, but->x2-3.0);
CLAMP(y, but->y1+3.0, but->y2-3.0);
fdrawXORcirc(x, y, 3.0);
/* outline */
glColor3ub(0, 0, 0);