Fixed minor bug in glk_image_get_info()
authorP. F. Chimento <philip.chimento@gmail.com>
Mon, 22 Nov 2010 22:14:19 +0000 (23:14 +0100)
committerP. F. Chimento <philip.chimento@gmail.com>
Mon, 22 Nov 2010 22:14:19 +0000 (23:14 +0100)
libchimara/graphics.c

index 7f59915dafb3402ea94b1e7b32a408e0b705151c..a8a0318bd86ff19838c80a07a0849f284c851862 100644 (file)
@@ -220,7 +220,7 @@ glk_image_get_info(glui32 image, glui32 *width, glui32 *height)
 
        if(width != NULL)
                *width = found->width;
-       if(width != NULL)
+       if(height != NULL)
                *height = found->height;
        return TRUE;
 }