Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Bug: ImageBuffer::alpha not initialised on X11
Re: Bug: ImageBuffer::alpha not initialised on X11 [message #15773 is a reply to message #15608] Wed, 07 May 2008 17:07 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
mrjt wrote on Wed, 30 April 2008 10:24

mr_ped wrote on Wed, 30 April 2008 15:00

luzr wrote on Wed, 30 April 2008 11:55


Should I draw random data into alpha? Smile Win32 clears it for me.



In case it is supposed to be uninitialized, and the OS does initialize it for you, I suggest to use random bytes in DEBUG mode trough #ifdef.
That will make such errors to appear in debug mode, yet it will not slow down release.

I hadn't thought of that, it's a good compromise IMO.


Well whatever, it is now cleared in X11. I guess it does not hurt much, ImageDraw is not supposed to be the performance king anyway.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bug in ImageBuffer::Line() and operator[]
Next Topic: .pcx images [FEATURE REQUEST]
Goto Forum:
  


Current Time: Thu Sep 04 05:44:59 CEST 2025

Total time taken to generate the page: 0.03553 seconds