From f759675dc79e8df5bc78480da540d5a5c6bdf87f Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Fri, 28 Sep 2012 13:21:36 -0400 Subject: Fix compiler warnings --- minuitwrp/graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'minuitwrp/graphics.c') diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c index 939f098d1..b30a92ef0 100644 --- a/minuitwrp/graphics.c +++ b/minuitwrp/graphics.c @@ -402,7 +402,7 @@ int gr_textExWH(int x, int y, const char *s, void* pFont, int max_width, int max rect_x = x + cwidth; else rect_x = max_width; - if (y + font->cheight < max_height) + if (y + font->cheight < (unsigned int)(max_height)) rect_y = y + font->cheight; else rect_y = max_height; @@ -423,7 +423,7 @@ int twgr_text(int x, int y, const char *s) GGLContext *gl = gr_context; GRFont *font = gr_font; unsigned off; - unsigned cwidth; + unsigned cwidth = 0; y -= font->ascent; -- cgit v1.2.3