Home » Community » Forums » » 16-bit Color
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 16-bit Color
Post Reply 
Good code! Works very well for different Color Bits(16/32).
However, it is very important to put brackets, otherwise it does not work at all!
I just corrected it like this and it worked fine:
BYTE Red GetRValue(dwColor);
BYTE Green GetGValue(dwColor);
BYTE Blue GetBValue(dwColor);

dwColor=(Blue > dwBSHR) > dwGSHR) > dwRSHR) <

 User Rating: 1015    Report this Post to a Moderator | Link

Date this article was posted to GameDev.net: 11/23/1999...

Best regards,
Omid

 User Rating: 1437   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: