Mercurial > MadButterfly
diff src/img_ldr.c @ 268:43900cae1d49
Support resizing for image.
- Programmers can change size of image that showed on the output device.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 24 Jan 2009 18:19:02 +0800 |
parents | 50d253d0fcba |
children | b391722bf20e |
line wrap: on
line diff
--- a/src/img_ldr.c Sat Jan 24 15:23:42 2009 +0800 +++ b/src/img_ldr.c Sat Jan 24 18:19:02 2009 +0800 @@ -46,8 +46,8 @@ return NULL; } img->img.content = cairo_image_surface_get_data(surf); - img->img.width = cairo_image_surface_get_width(surf); - img->img.height = cairo_image_surface_get_height(surf); + img->img.w = cairo_image_surface_get_width(surf); + img->img.h = cairo_image_surface_get_height(surf); img->img.stride = cairo_image_surface_get_stride(surf); fmt = cairo_image_surface_get_format(surf); switch(fmt) {