summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-02-27 14:22:30 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-02-27 14:22:30 +0000
commitb1079200d34b197a9ea0ec649168b0a307ee9517 (patch)
treef4132e5965de2c6cf997a653af48f615b30c7a50 /firmware
parent8856b8651980e0e2df2dbb94726cbc9bb4fc085b (diff)
downloadrockbox-b1079200d34b197a9ea0ec649168b0a307ee9517.tar.gz
rockbox-b1079200d34b197a9ea0ec649168b0a307ee9517.zip
New option: Invert display. Patch by Mark Hillebrand.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3355 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/lcd-recorder.c8
-rw-r--r--firmware/export/lcd.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index 26112e37dd..6665ea88dc 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -194,6 +194,14 @@ void lcd_set_contrast(int val)
194 lcd_write(true, val); 194 lcd_write(true, val);
195} 195}
196 196
197void lcd_set_invert_display(bool yesno)
198{
199 if (yesno)
200 lcd_write(true, LCD_SET_REVERSE_DISPLAY);
201 else
202 lcd_write(true, LCD_SET_NORMAL_DISPLAY);
203}
204
197/** 205/**
198 * Rolls up the lcd display by the specified amount of lines. 206 * Rolls up the lcd display by the specified amount of lines.
199 * Lines that are rolled out over the top of the screen are 207 * Lines that are rolled out over the top of the screen are
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 6149dc38d7..74bbcc304e 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -122,7 +122,7 @@ extern void lcd_drawpixel(int x, int y);
122extern void lcd_clearpixel(int x, int y); 122extern void lcd_clearpixel(int x, int y);
123extern void lcd_invertpixel(int x, int y); 123extern void lcd_invertpixel(int x, int y);
124extern void lcd_roll(int pixels); 124extern void lcd_roll(int pixels);
125 125extern void lcd_set_invert_display(bool yesno);
126extern void lcd_bidir_scroll(int threshold); 126extern void lcd_bidir_scroll(int threshold);
127extern void lcd_scroll_step(int pixels); 127extern void lcd_scroll_step(int pixels);
128extern void lcd_setfont(int font); 128extern void lcd_setfont(int font);