mirror of
https://github.com/raysan5/raygui.git
synced 2026-01-29 18:29:18 -05:00
tweaks for Zig
This commit is contained in:
@ -2575,7 +2575,7 @@ int GuiTextBox(Rectangle bounds, char *text, int bufferSize, bool editMode)
|
|||||||
int codepointSize = 0;
|
int codepointSize = 0;
|
||||||
int codepointIndex = 0;
|
int codepointIndex = 0;
|
||||||
float glyphWidth = 0.0f;
|
float glyphWidth = 0.0f;
|
||||||
int widthToMouseX = 0;
|
float widthToMouseX = 0;
|
||||||
int mouseCursorIndex = 0;
|
int mouseCursorIndex = 0;
|
||||||
|
|
||||||
for (int i = textIndexOffset; i < textLength; i++)
|
for (int i = textIndexOffset; i < textLength; i++)
|
||||||
@ -4647,7 +4647,7 @@ const char **GetTextLines(const char *text, int *count)
|
|||||||
// Get text width to next space for provided string
|
// Get text width to next space for provided string
|
||||||
static int GetNextSpaceWidth(const char *text, int *nextSpaceIndex)
|
static int GetNextSpaceWidth(const char *text, int *nextSpaceIndex)
|
||||||
{
|
{
|
||||||
int width = 0;
|
float width = 0;
|
||||||
int codepointByteCount = 0;
|
int codepointByteCount = 0;
|
||||||
int codepoint = 0;
|
int codepoint = 0;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
@ -4670,7 +4670,7 @@ static int GetNextSpaceWidth(const char *text, int *nextSpaceIndex)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return width;
|
return (int)width;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gui draw text using default font
|
// Gui draw text using default font
|
||||||
|
|||||||
Reference in New Issue
Block a user