summaryrefslogtreecommitdiff
blob: d0ca2eda56e7a231c63b06af7487b1d74314d5fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- desktop/unx/source/splashx.c.ark	2011-01-16 20:25:10.846685172 +0100
+++ desktop/unx/source/splashx.c	2011-01-16 20:27:12.673351839 +0100
@@ -137,8 +137,8 @@ int splash_load_bmp( const char *filenam
                   PNG_TRANSFORM_GRAY_TO_RGB | PNG_TRANSFORM_BGR, NULL);
 
     bitmap_rows = png_get_rows( png_ptr, info_ptr );
-    width = info_ptr->width;
-    height = info_ptr->height;
+    width = png_get_image_width( png_ptr, info_ptr );
+    height = png_get_image_height( png_ptr, info_ptr );
 
 #if 0
     {