#32 new
lyle (at lylejohnson)

Segmentation fault with FXImage.rotate

Reported by lyle (at lylejohnson) | November 11th, 2009 @ 10:42 PM

FXImage.rotate results in a segmentation fault if the rotation is used for other than 0, 90, 180 or 270 degrees. The Fox toolkit only supports these degrees for rotating FXImages, but the documentation of FXRuby doesn't state this clear and the warning from Fox isn't passed to FXRuby.

img = FXImage.new(app, nil, IMAGE_OWNED | IMAGE_KEEP, 20, 20)
img.setPixel(5, 5, FXColor::Yellow)
img.create
dc.drawImage(img, 50, 50)
img.rotate(45) # <- segmentation fault
dc.drawImage(img, 80, 80)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

FXRuby is a library for developing powerful and sophisticated cross-platform graphical user interfaces (GUIs) for your Ruby applications. It’s based on the FOX Toolkit, a popular open source C++ library developed by Jeroen van der Zijp. What that means for you as an application developer is that you’re able to write code in the Ruby programming language that you already know and love, while at the same time taking advantage of the performance and functionality of a featureful, highly optimized C++ toolkit.

Shared Ticket Bins

People watching this ticket

Tags

Pages