From f115d43753c5bf6d6d0cf13e543125d1f2622682 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Mon, 17 Dec 2012 22:33:00 +0100 Subject: SSD1289 calibration clear fix --- drivers/gdisp/SSD1289/gdisp_lld.c | 1 + drivers/gdisp/SSD1289/gdisp_lld_config.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gdisp/SSD1289') diff --git a/drivers/gdisp/SSD1289/gdisp_lld.c b/drivers/gdisp/SSD1289/gdisp_lld.c index 0f000637..8e9cee34 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld.c +++ b/drivers/gdisp/SSD1289/gdisp_lld.c @@ -292,6 +292,7 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) { void GDISP_LLD(clear)(color_t color) { unsigned i; + reset_viewport(); acquire_bus(); set_cursor(0, 0); stream_start(); diff --git a/drivers/gdisp/SSD1289/gdisp_lld_config.h b/drivers/gdisp/SSD1289/gdisp_lld_config.h index 1863ce04..dafbc90f 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_config.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_config.h @@ -36,7 +36,6 @@ /*===========================================================================*/ #define GDISP_DRIVER_NAME "SSD1289" -#define IS_THIS_SSD1289 134038 /* very dirty fix until reset_viewport works */ #define GDISP_LLD(x) gdisp_lld_##x##_SSD1289 #define GDISP_HARDWARE_CLEARS TRUE -- cgit v1.2.3