summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/20-nanovg/blendish.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/20-nanovg/blendish.h')
-rw-r--r--3rdparty/bgfx/examples/20-nanovg/blendish.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/20-nanovg/blendish.h b/3rdparty/bgfx/examples/20-nanovg/blendish.h
index 1afb1f5d0ed..15c2f3f0268 100644
--- a/3rdparty/bgfx/examples/20-nanovg/blendish.h
+++ b/3rdparty/bgfx/examples/20-nanovg/blendish.h
@@ -2229,10 +2229,10 @@ int bndIconLabelTextPosition(NVGcontext *ctx, float x, float y, float w, float h
ctx, x, y, rows[row].start, rows[row].end + 1, glyphs, BND_MAX_GLYPHS);
int col, p = 0;
for (col = 0; col < nglyphs && glyphs[col].x < px; ++col)
- p = glyphs[col].str - label;
+ p = (int)(glyphs[col].str - label);
// see if we should move one character further
if (col > 0 && col < nglyphs && glyphs[col].x - px < px - glyphs[col - 1].x)
- p = glyphs[col].str - label;
+ p = (int)(glyphs[col].str - label);
return p;
}