diff --git a/examples/audio/raygui.h b/examples/audio/raygui.h index f7a116150..b25f704a1 100644 --- a/examples/audio/raygui.h +++ b/examples/audio/raygui.h @@ -4214,7 +4214,7 @@ int GuiColorPicker(Rectangle bounds, const char *text, Color *color) // NOTE: this conversion can cause low hue-resolution, if the r, g and b value are very similar, which causes the hue bar to shift around when only the GuiColorPanel is used Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ (*color).r/255.0f, (*color).g/255.0f, (*color).b/255.0f }); - if (result != RESULT_CHANGED) result = GuiColorBarHue(boundsHue, NULL, &hsv.x); + result = GuiColorBarHue(boundsHue, NULL, &hsv.x); //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f); Vector3 rgb = ConvertHSVtoRGB(hsv); diff --git a/examples/core/raygui.h b/examples/core/raygui.h index f7a116150..b25f704a1 100644 --- a/examples/core/raygui.h +++ b/examples/core/raygui.h @@ -4214,7 +4214,7 @@ int GuiColorPicker(Rectangle bounds, const char *text, Color *color) // NOTE: this conversion can cause low hue-resolution, if the r, g and b value are very similar, which causes the hue bar to shift around when only the GuiColorPanel is used Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ (*color).r/255.0f, (*color).g/255.0f, (*color).b/255.0f }); - if (result != RESULT_CHANGED) result = GuiColorBarHue(boundsHue, NULL, &hsv.x); + result = GuiColorBarHue(boundsHue, NULL, &hsv.x); //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f); Vector3 rgb = ConvertHSVtoRGB(hsv); diff --git a/examples/models/raygui.h b/examples/models/raygui.h index f7a116150..b25f704a1 100644 --- a/examples/models/raygui.h +++ b/examples/models/raygui.h @@ -4214,7 +4214,7 @@ int GuiColorPicker(Rectangle bounds, const char *text, Color *color) // NOTE: this conversion can cause low hue-resolution, if the r, g and b value are very similar, which causes the hue bar to shift around when only the GuiColorPanel is used Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ (*color).r/255.0f, (*color).g/255.0f, (*color).b/255.0f }); - if (result != RESULT_CHANGED) result = GuiColorBarHue(boundsHue, NULL, &hsv.x); + result = GuiColorBarHue(boundsHue, NULL, &hsv.x); //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f); Vector3 rgb = ConvertHSVtoRGB(hsv); diff --git a/examples/shaders/raygui.h b/examples/shaders/raygui.h index f7a116150..b25f704a1 100644 --- a/examples/shaders/raygui.h +++ b/examples/shaders/raygui.h @@ -4214,7 +4214,7 @@ int GuiColorPicker(Rectangle bounds, const char *text, Color *color) // NOTE: this conversion can cause low hue-resolution, if the r, g and b value are very similar, which causes the hue bar to shift around when only the GuiColorPanel is used Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ (*color).r/255.0f, (*color).g/255.0f, (*color).b/255.0f }); - if (result != RESULT_CHANGED) result = GuiColorBarHue(boundsHue, NULL, &hsv.x); + result = GuiColorBarHue(boundsHue, NULL, &hsv.x); //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f); Vector3 rgb = ConvertHSVtoRGB(hsv); diff --git a/examples/shapes/raygui.h b/examples/shapes/raygui.h index f7a116150..b25f704a1 100644 --- a/examples/shapes/raygui.h +++ b/examples/shapes/raygui.h @@ -4214,7 +4214,7 @@ int GuiColorPicker(Rectangle bounds, const char *text, Color *color) // NOTE: this conversion can cause low hue-resolution, if the r, g and b value are very similar, which causes the hue bar to shift around when only the GuiColorPanel is used Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ (*color).r/255.0f, (*color).g/255.0f, (*color).b/255.0f }); - if (result != RESULT_CHANGED) result = GuiColorBarHue(boundsHue, NULL, &hsv.x); + result = GuiColorBarHue(boundsHue, NULL, &hsv.x); //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f); Vector3 rgb = ConvertHSVtoRGB(hsv); diff --git a/examples/text/raygui.h b/examples/text/raygui.h index f7a116150..b25f704a1 100644 --- a/examples/text/raygui.h +++ b/examples/text/raygui.h @@ -4214,7 +4214,7 @@ int GuiColorPicker(Rectangle bounds, const char *text, Color *color) // NOTE: this conversion can cause low hue-resolution, if the r, g and b value are very similar, which causes the hue bar to shift around when only the GuiColorPanel is used Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ (*color).r/255.0f, (*color).g/255.0f, (*color).b/255.0f }); - if (result != RESULT_CHANGED) result = GuiColorBarHue(boundsHue, NULL, &hsv.x); + result = GuiColorBarHue(boundsHue, NULL, &hsv.x); //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f); Vector3 rgb = ConvertHSVtoRGB(hsv); diff --git a/examples/textures/raygui.h b/examples/textures/raygui.h index f7a116150..b25f704a1 100644 --- a/examples/textures/raygui.h +++ b/examples/textures/raygui.h @@ -4214,7 +4214,7 @@ int GuiColorPicker(Rectangle bounds, const char *text, Color *color) // NOTE: this conversion can cause low hue-resolution, if the r, g and b value are very similar, which causes the hue bar to shift around when only the GuiColorPanel is used Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ (*color).r/255.0f, (*color).g/255.0f, (*color).b/255.0f }); - if (result != RESULT_CHANGED) result = GuiColorBarHue(boundsHue, NULL, &hsv.x); + result = GuiColorBarHue(boundsHue, NULL, &hsv.x); //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f); Vector3 rgb = ConvertHSVtoRGB(hsv);