Thanks Mirek,<br><br>For anyone else reading this post the topic is "Easyce stuff" in "Phantoms forum" and is well worth reading.<br><br>How would I impletement a macro to do this? I would like to call vline() as follows:-<br>vline(x,y,len,RGB(255,0,0));<br><br>is the following the correct syntax?<br><br>#define RGB(r,g,b) ((unsigned short)((r<<11)+(g<<5)+(b))<br><br>or the faster version<br>#define RGB(r,g,b) ((unsigned short)((r>>8 )&0xF800)+((g>>5)&0x07E0)+((b>>3)&0x001F)) <br><br>and is this the best way to code a solution. <br><br>Thanks in advance <br>Bad<br><br>PS I've never used macros before so please feel free to correct my syntax or tell me not to use them
<br><br>PPS I'm not sure about the 2nd #define at all.<br>Last modification: BadBazza - 01/04/02 at 04:20:01
Lost....... Assumed Coding!