From 47cc88d1e106b07157d5b8026f44a7df30fa2a6c Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 10 Jan 2017 13:17:48 -0800 Subject: [PATCH] ILI9341: Tidy scroll types, use height(). --- firmware/common/lcd_ili9341.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/common/lcd_ili9341.hpp b/firmware/common/lcd_ili9341.hpp index c277f407..628cfe17 100644 --- a/firmware/common/lcd_ili9341.hpp +++ b/firmware/common/lcd_ili9341.hpp @@ -33,7 +33,7 @@ namespace lcd { class ILI9341 { public: constexpr ILI9341( - ) : scroll_state { 0, 0, 320, 0 } + ) : scroll_state { 0, 0, height(), 0 } { } @@ -100,10 +100,10 @@ public: private: struct scroll_t { - uint16_t top_area; - uint16_t bottom_area; - uint16_t height; - uint16_t current_position; + ui::Coord top_area; + ui::Coord bottom_area; + ui::Dim height; + ui::Coord current_position; }; scroll_t scroll_state;