Closed gkalsi closed 8 years ago
…nslation functions.
Reduce code duplication in the future. copyrect, fillrect, and putpixel are identical regardless of the colour representation (8bit rgb vs 8bit mono). Shifting the responsibility of flattening colours away from these functions.
copyrect
fillrect
putpixel
LGTM
Also I saw what you did there.
Did I do something clever without realizing it? :stuck_out_tongue:
…nslation functions.
Reduce code duplication in the future.
copyrect
,fillrect
, andputpixel
are identical regardless of the colour representation (8bit rgb vs 8bit mono). Shifting the responsibility of flattening colours away from these functions.