From 6738bb70aca346fbdcd4131a1e4908fb955ffcb5 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Tue, 21 Apr 2015 22:35:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=83=8F=E7=B4=A0=E8=B5=B7?= =?UTF-8?q?=E7=82=B9=E5=9D=90=E6=A0=87=E7=9A=84=E8=AE=A1=E7=AE=97=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bmp/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bmp/png.c b/src/bmp/png.c index ef35f754..ba0cf1ba 100644 --- a/src/bmp/png.c +++ b/src/bmp/png.c @@ -247,7 +247,7 @@ int Graph_WritePNG( const char *file_name, const LCUI_Graph *graph ) row_pointers[y][x + 3] = *pixel_ptr++; // alpha } } - pixel_row_ptr += row_size; + pixel_row_ptr += graph->bytes_per_row; } png_write_image( png_ptr, row_pointers );