aboutsummaryrefslogtreecommitdiff
path: root/util/sokol_debugtext.h
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2024-02-08 22:21:44 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2024-02-08 22:21:44 +0700
commit7fb41a7e3bf610a69bffbfa8c7f22661c0b4b625 (patch)
tree24deaa4beecff7ec32379b85e25c11196a5be92a /util/sokol_debugtext.h
parent02b1dae4127402b3531f862a4ef114af175b11fb (diff)
Typo fixes.
Diffstat (limited to 'util/sokol_debugtext.h')
-rw-r--r--util/sokol_debugtext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h
index 68591591..cec06946 100644
--- a/util/sokol_debugtext.h
+++ b/util/sokol_debugtext.h
@@ -148,7 +148,7 @@
- to render characters at 16x16 physical pixels:
- sdtx_canvas(sapp_width()/2.0f, sapp_heigth()/2.0f);
+ sdtx_canvas(sapp_width()/2.0f, sapp_height()/2.0f);
Do *not* use integer math here, since this will not look nice
when the render target size isn't divisible by 2.
@@ -4135,7 +4135,7 @@ static void _sdtx_render_char(_sdtx_context_t* ctx, uint8_t c) {
const float x1 = x0 + ctx->glyph_size.x;
const float y1 = y0 + ctx->glyph_size.y;
- // glyph width and heigth in font texture space
+ // glyph width and height in font texture space
// NOTE: the '+1' and '-2' fixes texture bleeding into the neighboring font texture cell
const uint16_t uvw = 0x10000 / 0x100;
const uint16_t uvh = 0x10000 / SDTX_MAX_FONTS;