Update raygui.h

This commit is contained in:
Ray 2024-05-29 11:54:54 +02:00
parent 7bb66e5c7f
commit 9c1a52515b

View File

@ -3472,7 +3472,7 @@ int GuiColorPanel(Rectangle bounds, const char *text, Color *color)
GuiColorPanelHSV(bounds, text, &hsv); GuiColorPanelHSV(bounds, text, &hsv);
// Check if the hsv was changed, only then change the color. // 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. // 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. // 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. // TODO: GuiColorPanelHSV could return 1 if the slider was dragged, to simplify this check.