mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
修改像素起点坐标的计算方法
This commit is contained in:
+1
-1
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user