|
@@ -141,12 +141,16 @@
|
|
|
* Draw text bounds rectangles for debug
|
|
|
*
|
|
|
* VERSIONS HISTORY:
|
|
|
-* 4.5-dev (Sep-2024) Current dev version...
|
|
|
+* 4.5-dev (2025) Current dev version...
|
|
|
* ADDED: guiControlExclusiveMode and guiControlExclusiveRec for exclusive modes
|
|
|
* ADDED: GuiValueBoxFloat()
|
|
|
* ADDED: GuiDropdonwBox() properties: DROPDOWN_ARROW_HIDDEN, DROPDOWN_ROLL_UP
|
|
|
* ADDED: GuiListView() property: LIST_ITEMS_BORDER_WIDTH
|
|
|
+* ADDED: GuiLoadIconsFromMemory()
|
|
|
* ADDED: Multiple new icons
|
|
|
+* REMOVED: GuiSpinner() from controls list, using BUTTON + VALUEBOX properties
|
|
|
+* REVIEWED: Controls using text labels to use LABEL properties
|
|
|
+* REVIEWED: Replaced sprintf() by snprintf() for more safety
|
|
|
* REVIEWED: GuiTabBar(), close tab with mouse middle button
|
|
|
* REVIEWED: GuiScrollPanel(), scroll speed proportional to content
|
|
|
* REVIEWED: GuiDropdownBox(), support roll up and hidden arrow
|
|
@@ -3581,7 +3585,10 @@ int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha)
|
|
|
|
|
|
int result = 0;
|
|
|
GuiState state = guiState;
|
|
|
- Rectangle selector = { (float)bounds.x + (*alpha)*bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT)/2, (float)bounds.y - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (float)GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT), (float)bounds.height + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)*2 };
|
|
|
+ Rectangle selector = { (float)bounds.x + (*alpha)*bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT)/2,
|
|
|
+ (float)bounds.y - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW),
|
|
|
+ (float)GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT),
|
|
|
+ (float)bounds.height + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)*2 };
|
|
|
|
|
|
// Update control
|
|
|
//--------------------------------------------------------------------
|
|
@@ -3628,7 +3635,6 @@ int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha)
|
|
|
|
|
|
// Draw control
|
|
|
//--------------------------------------------------------------------
|
|
|
-
|
|
|
// Draw alpha bar: checked background
|
|
|
if (state != STATE_DISABLED)
|
|
|
{
|