Update raygui.h
This commit is contained in:
parent
fdb7cd0587
commit
b02e737074
1 changed files with 2 additions and 2 deletions
|
@ -2349,7 +2349,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode)
|
||||||
{
|
{
|
||||||
int glyphWidth = 0;
|
int glyphWidth = 0;
|
||||||
if (glyphInfo.advanceX != 0) glyphWidth += glyphInfo.advanceX;
|
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
|
// Jump line if the end of the text box area has been reached
|
||||||
if ((cursorPos.x + (glyphWidth*scaleFactor)) > (textAreaBounds.x + textAreaBounds.width))
|
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;
|
int glyphWidth = 0;
|
||||||
if (glyphInfo.advanceX != 0) glyphWidth += glyphInfo.advanceX;
|
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));
|
cursorPos.x += (glyphWidth*scaleFactor + (float)GuiGetStyle(DEFAULT, TEXT_SPACING));
|
||||||
//if (i > lastSpacePos) lastSpaceWidth += (atlasRec.width + (float)GuiGetStyle(DEFAULT, TEXT_SPACING));
|
//if (i > lastSpacePos) lastSpaceWidth += (atlasRec.width + (float)GuiGetStyle(DEFAULT, TEXT_SPACING));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue