You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* slight optimisations
* Revert a bad optimization
_PixelPtr checks the full 24-bit y value in DE, but the y value is only passed as an 8-bit value to gfx_SetPixel. The upper 16 bits of DE will be undefined and possibly nonzero here, in which case I believe _PixelPtr would erroneously reject it as offscreen even if the 8-bit value is actually on screen.
* Optimize gfx_SetPixel
-8 cycles, -2 bytes
* Make gfx_GetPixel safer
+4 cycles, +2 bytes
I had these changes sitting around locally for a while. Since this
routine was already getting optimized in a very similar fashion, I
figured I should just slip my little extra safety changes (and better
comments) on top.
0 commit comments