mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 07:02:26 -04: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:
parent
8c565bbf15
commit
b27c738b69
3 changed files with 35 additions and 15 deletions
|
@ -100,6 +100,9 @@ class ILI9341 {
|
|||
constexpr ui::Dim height() const { return 320; }
|
||||
constexpr ui::Rect screen_rect() const { return {0, 0, width(), height()}; }
|
||||
|
||||
void draw_pixels(const ui::Rect r, const ui::Color* const colors, const size_t count);
|
||||
void read_pixels(const ui::Rect r, ui::ColorRGB888* const colors, const size_t count);
|
||||
|
||||
private:
|
||||
struct scroll_t {
|
||||
ui::Coord top_area;
|
||||
|
@ -109,9 +112,6 @@ class ILI9341 {
|
|||
};
|
||||
|
||||
scroll_t scroll_state;
|
||||
|
||||
void draw_pixels(const ui::Rect r, const ui::Color* const colors, const size_t count);
|
||||
void read_pixels(const ui::Rect r, ui::ColorRGB888* const colors, const size_t count);
|
||||
};
|
||||
|
||||
} /* namespace lcd */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue