Update raygui.h
This commit is contained in:
parent
7bb66e5c7f
commit
9c1a52515b
@ -3472,7 +3472,7 @@ int GuiColorPanel(Rectangle bounds, const char *text, Color *color)
|
||||
GuiColorPanelHSV(bounds, text, &hsv);
|
||||
|
||||
// Check if the hsv was changed, only then change the color.
|
||||
// This is necessary, because the Color->HSV->Color conversion has precision errors.
|
||||
// This is required, because the Color->HSV->Color conversion has precision errors.
|
||||
// Thus the assignment from HSV to Color should only be made, if the HSV has a new user-entered value.
|
||||
// Otherwise GuiColorPanel would often modify it's color without user input.
|
||||
// TODO: GuiColorPanelHSV could return 1 if the slider was dragged, to simplify this check.
|
||||
|
Loading…
x
Reference in New Issue
Block a user