changeset 1960:b99e04c356ec

Some dead code was accidentally left in. Delete it.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 30 Jun 2018 05:40:14 +0300
parents e987a56e2c66
children 096046214869
files tools/fontconv.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tools/fontconv.c	Sat Jun 30 05:37:31 2018 +0300
+++ b/tools/fontconv.c	Sat Jun 30 05:40:14 2018 +0300
@@ -340,7 +340,7 @@
             {
                 DMBitmapGlyph *glyph = &font->glyphMap[nglyph];
                 int minx, miny, advance;
-                SDL_Rect src, dst;
+                SDL_Rect dst;
 
                 if (TTF_GlyphMetrics(ttf, nglyph, &minx, NULL, &miny, NULL, &advance) == -1)
                 {
@@ -349,16 +349,10 @@
                     goto out;
                 }
 
-                src.x = 0;
-                src.y = 0;
-                src.w = tmp->w;
-                src.h = tmp->h;
-
                 dst.x = 0;
                 dst.y = index * font->height;
                 dst.w = tmp->w;
                 dst.h = tmp->h;
-//                dst.h = font->height;
 
                 // Set glyph data
                 glyph->width  = font->width;