Some changes to the trunc

[email protected] ("Nikolay Ananiev")
Newsgroups perl.sdl.devel
Message-ID <00f901c6cc66$b52d1940$0700a8c0@ananiev>
Hi,
I was trying to animate some png images with alpha when I encountered bad performance (I rewrote the same script in python and the performance was a lot better). I found out that I had to use SDL::DisplayFormatAlpha to fix the performance, but SDL::Surface::display_format_alpha was missing, so I added it (it's the same like SDL::Surface::display_format, but uses SDL::DisplayFormatAlpha).

The second change I did to truck was to change $SDL::DEBUG to a constant, so the compiler can optimize away the blocks with SDL::DEBUG.

Everything is tested and works.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.