mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 09:39:12 -04:00
ILI9341: Tidy scroll types, use height().
This commit is contained in:
parent
748e5a4f5f
commit
47cc88d1e1
1 changed files with 5 additions and 5 deletions
|
@ -33,7 +33,7 @@ namespace lcd {
|
||||||
class ILI9341 {
|
class ILI9341 {
|
||||||
public:
|
public:
|
||||||
constexpr ILI9341(
|
constexpr ILI9341(
|
||||||
) : scroll_state { 0, 0, 320, 0 }
|
) : scroll_state { 0, 0, height(), 0 }
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,10 +100,10 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct scroll_t {
|
struct scroll_t {
|
||||||
uint16_t top_area;
|
ui::Coord top_area;
|
||||||
uint16_t bottom_area;
|
ui::Coord bottom_area;
|
||||||
uint16_t height;
|
ui::Dim height;
|
||||||
uint16_t current_position;
|
ui::Coord current_position;
|
||||||
};
|
};
|
||||||
|
|
||||||
scroll_t scroll_state;
|
scroll_t scroll_state;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue