Hi Uz, > No, not really. Calculating the intersection between the drawn line and one of > the borders is a lot cheaper than checking the coordinates for each pixel. I see. > I didn't think of SetPixel. So, before I get the next thing wrong, let me say > it this way: If clipping is easy and doesn't complicate things for the driver, > it should be done in the wrapper. Trying to rephrase in my words to be sure: By default clipping is done in the wrapper. The only exception I'm aware of is tgi_circle. > tgi_bar does clipping, dito tgi_setpixel and > tgi_getpixel. I found the tgi_bar clipping code in libsrc/tgi/tgi_bar.s but where's the clipping code for tgi_[s|g]etpixel? I didn't find it in libsrc/tgi/tgi_[s|g]etpixel.s > tgi_line *should* do clipping but doesn't. I see. Best, Oliver ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun Oct 18 23:28:57 2009
This archive was generated by hypermail 2.1.8 : 2009-10-18 23:29:00 CEST