@@ -323,7 +323,7 @@ double GuiDMValueBox(Rectangle bounds, double value, double minValue, double max
323323 Rectangle textBounds = {bounds .x + GuiGetStyle (VALUEBOX , BORDER_WIDTH ) + textPadding , bounds .y + GuiGetStyle (VALUEBOX , BORDER_WIDTH ),
324324 bounds .width - 2 * (GuiGetStyle (VALUEBOX , BORDER_WIDTH ) + textPadding ), bounds .height - 2 * GuiGetStyle (VALUEBOX , BORDER_WIDTH )};
325325
326- int textWidth = GetTextWidth (textValue );
326+ int textWidth = GuiGetTextWidth (textValue );
327327 if (textWidth > textBounds .width ) textBounds .width = textWidth ;
328328
329329 if (state == STATE_PRESSED )
@@ -338,7 +338,7 @@ double GuiDMValueBox(Rectangle bounds, double value, double minValue, double max
338338 if (cursor > 0 ) {
339339 char c = textValue [cursor ];
340340 textValue [cursor ] = '\0' ;
341- textWidthCursor = GetTextWidth (textValue );
341+ textWidthCursor = GuiGetTextWidth (textValue );
342342 textValue [cursor ] = c ;
343343 }
344344 //DrawRectangle(bounds.x + textWidthCursor + textPadding + 2, bounds.y + 2*GuiGetStyle(VALUEBOX, BORDER_WIDTH), 1, bounds.height - 4*GuiGetStyle(VALUEBOX, BORDER_WIDTH), Fade(GetColor(GuiGetStyle(VALUEBOX, BORDER_COLOR_PRESSED)), guiAlpha));
@@ -608,7 +608,7 @@ void GuiDMPropertyList(Rectangle bounds, GuiDMProperty* props, int count, int* f
608608 // draw X, Y, Z, W values (only when expanded)
609609 if (!PROP_CHECK_FLAG (& props [p ], GUI_PFLAG_COLLAPSED )) {
610610 Rectangle slotBounds = { propBounds .x , propBounds .y + GuiGetStyle (LISTVIEW , LIST_ITEMS_HEIGHT )+ 1 , propBounds .width , GuiGetStyle (LISTVIEW , LIST_ITEMS_HEIGHT )- 2 };
611- Rectangle lblBounds = { propBounds .x + PROPERTY_PADDING , slotBounds .y , GetTextWidth ("A" ), slotBounds .height };
611+ Rectangle lblBounds = { propBounds .x + PROPERTY_PADDING , slotBounds .y , GuiGetTextWidth ("A" ), slotBounds .height };
612612 Rectangle valBounds = { lblBounds .x + lblBounds .width + PROPERTY_PADDING , slotBounds .y , propBounds .width - lblBounds .width - 2 * PROPERTY_PADDING , slotBounds .height };
613613 GuiDrawText ("X" , lblBounds , TEXT_ALIGN_LEFT , textColor );
614614 props [p ].value .v2 .x = GuiDMSpinner (valBounds , props [p ].value .v2 .x , 0.0 , 0.0 , 1.0 , PROPERTY_DECIMAL_DIGITS , (propState == STATE_FOCUSED ) && CheckCollisionPointRec (mousePos , slotBounds ) );
@@ -647,7 +647,7 @@ void GuiDMPropertyList(Rectangle bounds, GuiDMProperty* props, int count, int* f
647647 // draw X, Y, Width, Height values (only when expanded)
648648 if (!PROP_CHECK_FLAG (& props [p ], GUI_PFLAG_COLLAPSED )) {
649649 Rectangle slotBounds = { propBounds .x , propBounds .y + GuiGetStyle (LISTVIEW , LIST_ITEMS_HEIGHT )+ 1 , propBounds .width , GuiGetStyle (LISTVIEW , LIST_ITEMS_HEIGHT )- 2 };
650- Rectangle lblBounds = { propBounds .x + PROPERTY_PADDING , slotBounds .y , GetTextWidth ("Height" ), slotBounds .height };
650+ Rectangle lblBounds = { propBounds .x + PROPERTY_PADDING , slotBounds .y , GuiGetTextWidth ("Height" ), slotBounds .height };
651651 Rectangle valBounds = { lblBounds .x + lblBounds .width + PROPERTY_PADDING , slotBounds .y , propBounds .width - lblBounds .width - 2 * PROPERTY_PADDING , slotBounds .height };
652652 GuiDrawText ("X" , lblBounds , TEXT_ALIGN_LEFT , textColor );
653653 props [p ].value .vrect .x = GuiDMSpinner (valBounds , props [p ].value .vrect .x , 0.0 , 0.0 , 1.0 , 0 , (propState == STATE_FOCUSED ) && CheckCollisionPointRec (mousePos , slotBounds ) );
@@ -685,8 +685,8 @@ void GuiDMPropertyList(Rectangle bounds, GuiDMProperty* props, int count, int* f
685685 // draw R, G, B, A values (only when expanded)
686686 if (!PROP_CHECK_FLAG (& props [p ], GUI_PFLAG_COLLAPSED )) {
687687 Rectangle slotBounds = { propBounds .x , propBounds .y + GuiGetStyle (LISTVIEW , LIST_ITEMS_HEIGHT )+ 1 , propBounds .width , GuiGetStyle (LISTVIEW , LIST_ITEMS_HEIGHT )- 2 };
688- Rectangle lblBounds = { propBounds .x + PROPERTY_PADDING , slotBounds .y , GetTextWidth ("A" ), slotBounds .height };
689- Rectangle valBounds = { lblBounds .x + lblBounds .width + PROPERTY_PADDING , slotBounds .y , GetTextWidth ("000000" ), slotBounds .height };
688+ Rectangle lblBounds = { propBounds .x + PROPERTY_PADDING , slotBounds .y , GuiGetTextWidth ("A" ), slotBounds .height };
689+ Rectangle valBounds = { lblBounds .x + lblBounds .width + PROPERTY_PADDING , slotBounds .y , GuiGetTextWidth ("000000" ), slotBounds .height };
690690 Rectangle sbarBounds = { valBounds .x + valBounds .width + PROPERTY_PADDING , slotBounds .y , slotBounds .width - 3 * PROPERTY_PADDING - lblBounds .width - valBounds .width , slotBounds .height };
691691
692692 if (sbarBounds .width <= GuiGetStyle (LISTVIEW , LIST_ITEMS_HEIGHT )- 2 ) valBounds .width = propBounds .width - lblBounds .width - 2 * PROPERTY_PADDING ; // hide slider when no space
@@ -865,4 +865,4 @@ bool GuiDMSaveProperties(const char* file, GuiDMProperty* props, int count) {
865865 return true;
866866}
867867
868- #endif // GUI_PROPERTY_LIST_IMPLEMENTATION
868+ #endif // GUI_PROPERTY_LIST_IMPLEMENTATION
0 commit comments