summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-11-01 20:07:22 +0100
committerraysan5 <[email protected]>2021-11-01 20:07:22 +0100
commitb02e737074db44a651325de20f8c7837a31d93a7 (patch)
tree2162da777c501ea050275a677df0892b741235e3 /src
parentfdb7cd05870760fd173b786bf654bff889a8dde8 (diff)
downloadraylib-b02e737074db44a651325de20f8c7837a31d93a7.tar.gz
raylib-b02e737074db44a651325de20f8c7837a31d93a7.zip
Update raygui.h
Diffstat (limited to 'src')
-rw-r--r--src/extras/raygui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extras/raygui.h b/src/extras/raygui.h
index da231eb0..dfb7792c 100644
--- a/src/extras/raygui.h
+++ b/src/extras/raygui.h
@@ -2349,7 +2349,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode)
{
int glyphWidth = 0;
if (glyphInfo.advanceX != 0) glyphWidth += glyphInfo.advanceX;
- else glyphWidth += (int)(atlasRec.width + glyphInfo.offsetX);
+ else glyphWidth += (atlasRec.width + glyphInfo.offsetX);
// Jump line if the end of the text box area has been reached
if ((cursorPos.x + (glyphWidth*scaleFactor)) > (textAreaBounds.x + textAreaBounds.width))
@@ -2382,7 +2382,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode)
int glyphWidth = 0;
if (glyphInfo.advanceX != 0) glyphWidth += glyphInfo.advanceX;
- else glyphWidth += (int)(atlasRec.width + glyphInfo.offsetX);
+ else glyphWidth += (atlasRec.width + glyphInfo.offsetX);
cursorPos.x += (glyphWidth*scaleFactor + (float)GuiGetStyle(DEFAULT, TEXT_SPACING));
//if (i > lastSpacePos) lastSpaceWidth += (atlasRec.width + (float)GuiGetStyle(DEFAULT, TEXT_SPACING));