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 #15608 is a reply to message #15606] Wed, 30 April 2008 16:24 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
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.

[Updated on: Wed, 30 April 2008 16:24]

Report message to a moderator

 
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: Sun Jul 06 15:57:56 CEST 2025

Total time taken to generate the page: 0.03500 seconds