[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
This commit is contained in:
parent
becf3487d4
commit
b3e2e3bbdb
1 changed files with 2 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue