koreader-base icon indicating copy to clipboard operation
koreader-base copied to clipboard

Add a few RGB-aware set & blend methods to the blitters

Open smasher816 opened this issue 1 year ago • 10 comments

Add new BB_fill_rect_color and BB_blend_rect_color functions taking a ColorRGB32. Use a new is_rgb flag in Color structs for lua wrapper to decide which BB_ function to call. If a ColorRGB32 is passed to fillRect/lightenRect then the new path will be taken. Otherwise original Color8A/uint8_t code is called.

No changes should occur for existing code paths. Callers must be patched to provide RGB colors if desired. Lua blitbuffer implementation has not been changed.


This change is Reviewable

smasher816 avatar Oct 26 '23 16:10 smasher816