diff --git a/examples/audio/raygui.h b/examples/audio/raygui.h index b25f704a1..ac24b15a3 100644 --- a/examples/audio/raygui.h +++ b/examples/audio/raygui.h @@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch Rectangle textBounds = { 0 }; if (message != NULL) { - int textSize = GuiGetTextWidth(message) + 2; + int messageTextSize = GuiGetTextWidth(message) + 2; - textBounds.x = bounds.x + bounds.width/2 - textSize/2; + textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; - textBounds.width = (float)textSize; + textBounds.width = (float)messageTextSize; textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); } @@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName) { case 'v': { - sscanf(buffer, "v %d", &version); - } + sscanf(buffer, "v %u", &version); + } break; case 'p': { // Style property: p diff --git a/examples/core/raygui.h b/examples/core/raygui.h index b25f704a1..ac24b15a3 100644 --- a/examples/core/raygui.h +++ b/examples/core/raygui.h @@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch Rectangle textBounds = { 0 }; if (message != NULL) { - int textSize = GuiGetTextWidth(message) + 2; + int messageTextSize = GuiGetTextWidth(message) + 2; - textBounds.x = bounds.x + bounds.width/2 - textSize/2; + textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; - textBounds.width = (float)textSize; + textBounds.width = (float)messageTextSize; textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); } @@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName) { case 'v': { - sscanf(buffer, "v %d", &version); - } + sscanf(buffer, "v %u", &version); + } break; case 'p': { // Style property: p diff --git a/examples/models/raygui.h b/examples/models/raygui.h index b25f704a1..ac24b15a3 100644 --- a/examples/models/raygui.h +++ b/examples/models/raygui.h @@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch Rectangle textBounds = { 0 }; if (message != NULL) { - int textSize = GuiGetTextWidth(message) + 2; + int messageTextSize = GuiGetTextWidth(message) + 2; - textBounds.x = bounds.x + bounds.width/2 - textSize/2; + textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; - textBounds.width = (float)textSize; + textBounds.width = (float)messageTextSize; textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); } @@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName) { case 'v': { - sscanf(buffer, "v %d", &version); - } + sscanf(buffer, "v %u", &version); + } break; case 'p': { // Style property: p diff --git a/examples/shaders/raygui.h b/examples/shaders/raygui.h index b25f704a1..ac24b15a3 100644 --- a/examples/shaders/raygui.h +++ b/examples/shaders/raygui.h @@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch Rectangle textBounds = { 0 }; if (message != NULL) { - int textSize = GuiGetTextWidth(message) + 2; + int messageTextSize = GuiGetTextWidth(message) + 2; - textBounds.x = bounds.x + bounds.width/2 - textSize/2; + textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; - textBounds.width = (float)textSize; + textBounds.width = (float)messageTextSize; textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); } @@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName) { case 'v': { - sscanf(buffer, "v %d", &version); - } + sscanf(buffer, "v %u", &version); + } break; case 'p': { // Style property: p diff --git a/examples/shapes/raygui.h b/examples/shapes/raygui.h index b25f704a1..ac24b15a3 100644 --- a/examples/shapes/raygui.h +++ b/examples/shapes/raygui.h @@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch Rectangle textBounds = { 0 }; if (message != NULL) { - int textSize = GuiGetTextWidth(message) + 2; + int messageTextSize = GuiGetTextWidth(message) + 2; - textBounds.x = bounds.x + bounds.width/2 - textSize/2; + textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; - textBounds.width = (float)textSize; + textBounds.width = (float)messageTextSize; textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); } @@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName) { case 'v': { - sscanf(buffer, "v %d", &version); - } + sscanf(buffer, "v %u", &version); + } break; case 'p': { // Style property: p diff --git a/examples/text/raygui.h b/examples/text/raygui.h index b25f704a1..ac24b15a3 100644 --- a/examples/text/raygui.h +++ b/examples/text/raygui.h @@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch Rectangle textBounds = { 0 }; if (message != NULL) { - int textSize = GuiGetTextWidth(message) + 2; + int messageTextSize = GuiGetTextWidth(message) + 2; - textBounds.x = bounds.x + bounds.width/2 - textSize/2; + textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; - textBounds.width = (float)textSize; + textBounds.width = (float)messageTextSize; textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); } @@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName) { case 'v': { - sscanf(buffer, "v %d", &version); - } + sscanf(buffer, "v %u", &version); + } break; case 'p': { // Style property: p diff --git a/examples/textures/raygui.h b/examples/textures/raygui.h index b25f704a1..ac24b15a3 100644 --- a/examples/textures/raygui.h +++ b/examples/textures/raygui.h @@ -4449,11 +4449,11 @@ int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, ch Rectangle textBounds = { 0 }; if (message != NULL) { - int textSize = GuiGetTextWidth(message) + 2; + int messageTextSize = GuiGetTextWidth(message) + 2; - textBounds.x = bounds.x + bounds.width/2 - textSize/2; + textBounds.x = bounds.x + bounds.width/2 - messageTextSize/2; textBounds.y = bounds.y + RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT + messageInputHeight/4 - (float)GuiGetStyle(DEFAULT, TEXT_SIZE)/2; - textBounds.width = (float)textSize; + textBounds.width = (float)messageTextSize; textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE); } @@ -4641,8 +4641,8 @@ void GuiLoadStyle(const char *fileName) { case 'v': { - sscanf(buffer, "v %d", &version); - } + sscanf(buffer, "v %u", &version); + } break; case 'p': { // Style property: p