[cairo] problem with cairo_image_surface_create_from_png() and cairo_scale()
Stefan Salewski
mail at ssalewski.de
Sun Feb 19 15:51:13 PST 2012
On Sun, 2012-02-19 at 13:16 +0100, cairobeginner cairobeginner wrote:
>
> complete source code is here:
> http://www.mikrocontroller.net/attachment/134681/main.c
Please note that
>gtk_widget_queue_draw_area(window,x*SZ_PIC_X*zoomX, y*SZ_PIC_Y*zoomY,
>SZ_PIC_X*zoomX, SZ_PIC_Y*zoomY);
may not work properly when zoomX and zoomY are float or double --
gtk_widget_queue_draw_area wants parameters of type gint, see
http://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-queue-draw-area
More information about the cairo
mailing list