* BUG: Fix Image.Rotate() routine.

[GB.GTK3]
* BUG: Fix Image.Rotate() routine.


git-svn-id: svn://localhost/gambas/trunk@7378 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2015-10-03 01:02:18 +00:00
parent becf3487d4
commit b3e2e3bbdb

View file

@ -1007,10 +1007,9 @@ gPicture* gPicture::rotate(double angle)
GdkPixbuf *src = getPixbuf();
gPicture *npic = new gPicture(PIXBUF, nw, nh, isTransparent());
npic->fill(0);
GdkPixbuf *dst = npic->getPixbuf();
npic->fill(isTransparent() ? -1 : 0);
rotate_image(cosa, -sina, sina, cosa, dx, dy,
gdk_pixbuf_get_pixels(dst), nw * 4, nw, nh,
gdk_pixbuf_get_pixels(src), width() * 4, width(), height());