diff src/paint.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 b42ee279669e
children 04d22dc38bc0
line wrap: on
line diff
--- a/src/paint.c	Sat Jan 24 15:23:42 2009 +0800
+++ b/src/paint.c	Sat Jan 24 18:19:02 2009 +0800
@@ -311,8 +311,8 @@
     paint->img = img;
     paint->surf = cairo_image_surface_create_for_data(img->content,
 						      fmt,
-						      img->width,
-						      img->height,
+						      img->w,
+						      img->h,
 						      img->stride);
     if(paint->surf == NULL) {
 	paint_destroy(&paint->paint);