From 6324dbe820c5b52f8bf63ecd490b1ba58cf47f93 Mon Sep 17 00:00:00 2001 From: olikraus Date: Tue, 29 Dec 2015 21:34:52 +0100 Subject: [PATCH] update --- cppsrc/U8g2lib.h | 2 +- sys/tga/ref_man_pics_u8g2/main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cppsrc/U8g2lib.h b/cppsrc/U8g2lib.h index 776006ea..f8ba2b9d 100644 --- a/cppsrc/U8g2lib.h +++ b/cppsrc/U8g2lib.h @@ -76,7 +76,7 @@ class U8G2 : public Print /* LiquidCrystal compatible functions */ void home(void) { tx = 0; ty = 0; } - void clear(void) { clearDisplay(); home(); } + void clear(void) { clearBuffer(); home(); } void noDisplay(void) { u8g2_SetPowerSave(&u8g2, 1); } void display(void) { u8g2_SetPowerSave(&u8g2, 0); } void setCursor(uint8_t x, uint8_t y) { tx = x; ty = y; } diff --git a/sys/tga/ref_man_pics_u8g2/main.c b/sys/tga/ref_man_pics_u8g2/main.c index b82952e3..05a5aef0 100644 --- a/sys/tga/ref_man_pics_u8g2/main.c +++ b/sys/tga/ref_man_pics_u8g2/main.c @@ -76,9 +76,9 @@ int main(void) tga_desc_fg_b = 135; */ - tga_desc_fg_r = 86; + tga_desc_fg_r = 76; tga_desc_fg_g = 0; - tga_desc_fg_b = 235; + tga_desc_fg_b = 205; tga_desc_bg_r = 255; tga_desc_bg_g = 255; @@ -153,7 +153,7 @@ int main(void) vm(25,19, u8g2_GetAscent(&u8g2)); /* descent usually is negative */ - vm(55,19-u8g2_GetDescent(&u8g2), -u8g2_GetDescent(&u8g2)); + vm(62,19-u8g2_GetDescent(&u8g2), -u8g2_GetDescent(&u8g2)); } while( u8g2_NextPage(&desc) ); tga_is_transparent = 0;