Update raygui.h (#317)

This commit is contained in:
Hanaxar 2023-07-30 10:19:12 +03:00 committed by GitHub
parent eca6b1a7ff
commit 3d20f06bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3510,7 +3510,7 @@ int GuiMessageBox(Rectangle bounds, const char *title, const char *message, cons
buttonBounds.width = (bounds.width - RAYGUI_MESSAGEBOX_BUTTON_PADDING*(buttonCount + 1))/buttonCount; buttonBounds.width = (bounds.width - RAYGUI_MESSAGEBOX_BUTTON_PADDING*(buttonCount + 1))/buttonCount;
buttonBounds.height = RAYGUI_MESSAGEBOX_BUTTON_HEIGHT; buttonBounds.height = RAYGUI_MESSAGEBOX_BUTTON_HEIGHT;
int textWidth = GetTextWidth(message); int textWidth = GetTextWidth(message) + 2;
Rectangle textBounds = { 0 }; Rectangle textBounds = { 0 };
textBounds.x = bounds.x + bounds.width/2 - textWidth/2; textBounds.x = bounds.x + bounds.width/2 - textWidth/2;