diff options
author | Tectu <joel@unormal.org> | 2012-07-22 02:26:16 +0200 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-07-22 02:26:16 +0200 |
commit | 8bc4bc974437c64cc22ae74c1f227588239842c0 (patch) | |
tree | ce7235ca8de45628e9d11f2aed0c7ceb7e048569 /drivers | |
parent | d0c92628edf94693ae0bb07d9ecc5d581c7ba4be (diff) | |
download | uGFX-8bc4bc974437c64cc22ae74c1f227588239842c0.tar.gz uGFX-8bc4bc974437c64cc22ae74c1f227588239842c0.tar.bz2 uGFX-8bc4bc974437c64cc22ae74c1f227588239842c0.zip |
small fix
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/lcd/ssd1289_lld.c | 5 | ||||
-rw-r--r-- | drivers/lcd/ssd1289_lld.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/lcd/ssd1289_lld.c b/drivers/lcd/ssd1289_lld.c index 3fc48921..c5b2fd0f 100644 --- a/drivers/lcd/ssd1289_lld.c +++ b/drivers/lcd/ssd1289_lld.c @@ -415,9 +415,10 @@ uint16_t lld_lcdGetWidth(void) { } /* a positive lines value shifts the screen up, negative down */ -void lld_lcdVerticalScroll(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, int16_t lines) { +void lld_lcdVerticalScroll(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t lines) { uint16_t row0, row1; uint16_t i; + lld_lcdSetWindow(x0, y0, x1, y1); for(i = 0; i < ((y1-y0) - abs(lines)); i++) { @@ -443,4 +444,4 @@ void lld_lcdVerticalScroll(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, i } #endif - +T diff --git a/drivers/lcd/ssd1289_lld.h b/drivers/lcd/ssd1289_lld.h index 16a9ef0d..bea4bedf 100644 --- a/drivers/lcd/ssd1289_lld.h +++ b/drivers/lcd/ssd1289_lld.h @@ -24,7 +24,7 @@ uint16_t lld_lcdGetPixelColor(uint16_t x, uint16_t y); uint16_t lld_lcdGetOrientation(void); uint16_t lld_lcdGetHeight(void); uint16_t lld_lcdGetWidth(void); -void lld_lcdVerticalScroll(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, int16_t lines); +void lld_lcdVerticalScroll(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t lines); #ifdef __cplusplus } |