From 7b634773003624975c2cbf7ecc5724983ae573f1 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 26 Apr 2021 23:17:33 +0200 Subject: [PATCH] Cleanup notes --- radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp b/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp index 237286757..c0949638b 100755 --- a/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp +++ b/radio/src/thirdparty/libopenui/src/bitmapbuffer.cpp @@ -683,6 +683,9 @@ void BitmapBuffer::drawMask(coord_t x, coord_t y, const BitmapBuffer * mask, Lcd if (y >= ymax || x >= xmax || width <= 0 || x + width < xmin || y + height < ymin) return; + // TODO: This should be doable the same way as with + // drawBitmapPattern() (just with ARGB as input). + // pixel_t color = COLOR_VAL(flags); for (coord_t row = 0; row < height; row++) { @@ -730,15 +733,9 @@ void BitmapBuffer::drawMask(coord_t x, coord_t y, const BitmapBuffer * mask, con return; - // TODO: + // TODO: This should be doable the same way as with + // drawBitmapPattern() (just with ARGB as input). // - // Try with DMA2D: - // - [ Fill ] copy scrBitmap into scratch buffer - // - ( +- [ Convert ] convert mask into ARGB4444 ) - // - [ Blend ] draw mask as alpha(ARGB4444) into scratch buffer - // - [ Blend ] blend into current buffer - // - for (coord_t row = 0; row < height; row++) { if (y + row < ymin || y + row >= ymax) continue;