修改像素起点坐标的计算方法

This commit is contained in:
Liu Chao
2015-04-21 22:35:49 +08:00
parent 163ab191a2
commit 6738bb70ac
+1 -1
View File
@@ -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 );