diff options
| author | Jeffery Myers <[email protected]> | 2021-10-25 01:21:16 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-25 10:21:16 +0200 |
| commit | daeccd03ace3eacf7907ecca1a697c7d00961cf4 (patch) | |
| tree | 0be2045a1003eed50c1456fd1a380ff970837233 /src | |
| parent | 086f76ba7abefb1b34e1baa353c5f69dfc5dafdc (diff) | |
| download | raylib-daeccd03ace3eacf7907ecca1a697c7d00961cf4.tar.gz raylib-daeccd03ace3eacf7907ecca1a697c7d00961cf4.zip | |
Fix VC warnings for examples (#2085)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extras/raygui.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extras/raygui.h b/src/extras/raygui.h index 5aada37e..3d7ef8d9 100644 --- a/src/extras/raygui.h +++ b/src/extras/raygui.h @@ -2322,7 +2322,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode) { int glyphWidth = 0; if (glyphInfo.advanceX != 0) glyphWidth += glyphInfo.advanceX; - else glyphWidth += (atlasRec.width + glyphInfo.offsetX); + else glyphWidth += (int)(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)) @@ -2355,7 +2355,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode) int glyphWidth = 0; if (glyphInfo.advanceX != 0) glyphWidth += glyphInfo.advanceX; - else glyphWidth += (atlasRec.width + glyphInfo.offsetX); + else glyphWidth += (int)(atlasRec.width + glyphInfo.offsetX); cursorPos.x += (glyphWidth*scaleFactor + (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); //if (i > lastSpacePos) lastSpaceWidth += (atlasRec.width + (float)GuiGetStyle(DEFAULT, TEXT_SPACING)); |
