Update raygui.h

This commit is contained in:
Ray 2022-10-03 17:59:36 +02:00
parent 3e6f5fdf01
commit 7837b9dc06

View File

@ -3548,7 +3548,18 @@ void GuiLoadStyleDefault(void)
GuiSetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT, 8); GuiSetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT, 8);
GuiSetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW, 2); GuiSetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW, 2);
guiFont = GetFontDefault(); // Initialize default font if (guiFont.texture.id != GetFontDefault().texture.id)
{
// Unload previous font texture
UnloadTexture(guiFont.texture);
// Setup default raylib font
guiFont = GetFontDefault();
// Setup default raylib font rectangle
Rectangle whiteChar = { 41, 46, 2, 8 };
SetShapesTexture(guiFont.texture, whiteChar);
}
} }
// Get text with icon id prepended // Get text with icon id prepended