mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Corrected detail for compilation with C++
This commit is contained in:
@ -470,7 +470,7 @@ static float guiAlpha = 1.0f;
|
||||
static Font guiFont = { 0 };
|
||||
|
||||
// Current GUI style (light or dark)
|
||||
static int style[NUM_PROPERTIES] = {
|
||||
static unsigned int style[NUM_PROPERTIES] = {
|
||||
#if defined(RAYGUI_STYLE_DEFAULT_LIGHT)
|
||||
//----------------------------------------------
|
||||
0xf5f5f5ff, // DEFAULT_BACKGROUND_COLOR
|
||||
@ -2006,7 +2006,7 @@ RAYGUIDEF bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editM
|
||||
if (keyCount < (textSize - 1))
|
||||
{
|
||||
int maxWidth = (bounds.width - (DEFAULT_TEXT_PADDING*2));
|
||||
if (GuiTextWidth(text) < maxWidth - style[DEFAULT_TEXT_SIZE])
|
||||
if (GuiTextWidth(text) < (maxWidth - style[DEFAULT_TEXT_SIZE]))
|
||||
{
|
||||
if ((key >= 32) && (key <= 125))
|
||||
{
|
||||
@ -2812,8 +2812,6 @@ static bool GuiListElement(Rectangle bounds, const char *text, bool active, bool
|
||||
|
||||
GuiControlState state = guiState;
|
||||
|
||||
bool pressed = false;
|
||||
|
||||
int textWidth = GuiTextWidth(text);
|
||||
int textHeight = style[DEFAULT_TEXT_SIZE];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user