mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-13 11:42:13 +00:00
XOR cursor support in Notepad (#1311)
* XOR cursor support in Notepad * XOR cursor support * XOR cursor support * Revert change * Use static buffer * Use static buffer * Clang
This commit is contained in:
@@ -117,6 +117,10 @@ class TextViewer : public Widget {
|
||||
uint32_t line{};
|
||||
uint16_t col{};
|
||||
ScrollDirection dir{ScrollDirection::Vertical};
|
||||
|
||||
// Pixel buffer used for cursor XOR'ing - Max cursor width = Max char width + 1
|
||||
ColorRGB888 pixel_buffer8[ui::char_width + 1]{};
|
||||
Color pixel_buffer[ui::char_width + 1]{};
|
||||
} cursor_{};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user