Welcome to the Creatures Wiki! Log in and join the community.

Editing 555/565

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 36: Line 36:
  
 
#define DECODE_555(v)          \
 
#define DECODE_555(v)          \
(RGB(                      \
+
(qRgb(                      \
 
  ((uint32_t)(v) & 0x7c00) >> 7,  \
 
  ((uint32_t)(v) & 0x7c00) >> 7,  \
 
  ((uint32_t)(v) & 0x03e0) >> 2,  \
 
  ((uint32_t)(v) & 0x03e0) >> 2,  \
Line 43: Line 43:
  
 
#define DECODE_565(v)          \
 
#define DECODE_565(v)          \
(RGB(                      \
+
(qRgb(                      \
 
  ((uint32_t)(v) & 0xf800) >> 8 , \
 
  ((uint32_t)(v) & 0xf800) >> 8 , \
 
  ((uint32_t)(v) & 0x07e0) >> 3 , \
 
  ((uint32_t)(v) & 0x07e0) >> 3 , \

All contributions to Creatures Wiki are considered to be released under the CC-BY-SA and GFDL (see Creatures Wiki:Copyrights for details).

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)