How about this? (The numbers are just examples) /* Fast aspect ratio */ #ifdef __C128__ # define ASPECTMUL 2 # define ASPECTDIV 1 #elif __WHO_KNOWS__ # define ASPECTMUL 1 # define ASPECTDIV 2 #else # define ASPECTMUL 1 # define ASPECTDIV 1 #endif /* High accuracy aspect ratio, requires 16 bit arithmetic */ #ifdef __C128__ # define HIASPECTMUL 250 # define HIASPECTDIV 128 #elif __WHO_KNOWS__ # define HIASPECTMUL 128 # define HIASPECTDIV 266 #else # define HIASPECTMUL 1 # define HIASPECTDIV 1 #endif I don't know if the compiler can optimize out "* 1" and "/ 1". / Thomas (Hoping to get less mails...) ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Oct 29 15:49:45 2009
This archive was generated by hypermail 2.1.8 : 2009-10-29 15:49:47 CET