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 » Premultiply - Wrong expression
Premultiply - Wrong expression [message #16701] Mon, 07 July 2008 23:10 Go to next message
loki is currently offline  loki
Messages: 36
Registered: October 2007
Member
Hello

File: ImageBlit.cpp

Functions:
int Premultiply(RGBA *t, const RGBA *s, int len)
int Unmultiply(RGBA *t, const RGBA *s, int len)

Should this
if(s->a != 0 || s->a != 255)


not be this
if(s->a != 0 && s->a != 255)


Re: Premultiply - Wrong expression [message #16706 is a reply to message #16701] Tue, 08 July 2008 07:29 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes. Thanks.

Mirek
Previous Topic: DrawArc bug ?
Next Topic: Showing Images in a Child Frame
Goto Forum:
  


Current Time: Thu Apr 18 16:07:10 CEST 2024

Total time taken to generate the page: 0.02285 seconds