changeset 2622:570ad268b721

Constify.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 29 Nov 2023 11:07:47 +0200
parents ad18774054e3
children da81e524162e
files tools/fontconv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/fontconv.c	Wed Nov 29 11:07:00 2023 +0200
+++ b/tools/fontconv.c	Wed Nov 29 11:07:47 2023 +0200
@@ -252,10 +252,10 @@
     // Write the glyph data
     for (int index = 0; index < font->maxglyph; index++)
     {
-        DMBitmapGlyph *glyph = &font->glyphMap[index];
+        const DMBitmapGlyph *glyph = &font->glyphMap[index];
         if (glyph->index >= 0)
         {
-            Uint8 *pixels = (Uint8 *) font->glyphs->pixels + font->gsize * glyph->index;
+            const Uint8 *pixels = (Uint8 *) font->glyphs->pixels + font->gsize * glyph->index;
 
             // Each glyph has its table index and w/h stored
             if (!dmf_write_le16(fp, index) ||