Color Format

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
gpx
Posts: 1
Joined: Sun Aug 21, 2005 5:32 am

Color Format

Post by gpx »

Hi

Does anyone have the exact color format for PSP colors - it appears to be "abgr" but:

#define ARGBtoColor(a, r, g, b) (unsigned int)((((a)&0xff)<<24|(((b)&0xff)<<16)|(((g)&0xff)<<8)|((r)&0xff)))

doesn't work.

Any ideas?
gpx
Post Reply