From b3e2e3bbdb18db1dca48e713025b8ee1249ad49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sat, 3 Oct 2015 01:02:18 +0000 Subject: [PATCH] [GB.GTK] * 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 --- gb.gtk/src/gpicture.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gb.gtk/src/gpicture.cpp b/gb.gtk/src/gpicture.cpp index 3ad34ae7c..2b54678ea 100644 --- a/gb.gtk/src/gpicture.cpp +++ b/gb.gtk/src/gpicture.cpp @@ -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());