From 7aa31d3dd698c94e8aa056285ffaefbbd4a17008 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 5 Sep 2020 16:25:58 -0700 Subject: [PATCH] remove unused variables in glCompRenderText --- lib/glcomp/glcompfont.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/glcomp/glcompfont.c b/lib/glcomp/glcompfont.c index 1be8a1179..f21014b89 100644 --- a/lib/glcomp/glcompfont.c +++ b/lib/glcomp/glcompfont.c @@ -425,15 +425,12 @@ void glCompDrawText(glCompFont * f,GLfloat x,GLfloat y) void glCompRenderText(glCompFont * f, glCompObj * parentObj) { static glCompCommon ref; - GLfloat x, y, z, w, h; + GLfloat x, y; if (!f->tex) return; x = 0; y = 0; - w = f->tex->width; - h = f->tex->height; ref = parentObj->common; - z = ref.pos.z; switch (f->justify.HJustify) { case glFontHJustifyNone: @@ -459,7 +456,6 @@ void glCompRenderText(glCompFont * f, glCompObj * parentObj) y = ref.refPos.y + (ref.height - f->tex->height) / (GLfloat) 2.0; break; } - z=ref.refPos.z; glCompSetColor(&f->color); glCompDrawText(f,x,y); -- 2.40.0