aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 9f7da71..812688a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -524,7 +524,7 @@ int main(int argc, char** argv)
if(imv_loader_get_image(&ldr, &bmp, &is_new_image)) {
imv_texture_set_image(&tex, bmp);
iw = FreeImage_GetWidth(bmp);
- ih = FreeImage_GetWidth(bmp);
+ ih = FreeImage_GetHeight(bmp);
FreeImage_Unload(bmp);
need_redraw = 1;
need_rescale += is_new_image;