aboutsummaryrefslogtreecommitdiff
path: root/main/enigma.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-06-01 16:08:32 +0200
committerghost <andreas.monzner@multimedia-labs.de>2010-06-01 16:08:32 +0200
commitc8724d0d7b016371309f189636b0992ea413bd96 (patch)
treedc04f7a62a0c263b1e298441db700d4738ec75a4 /main/enigma.cpp
parentdb96b0766a1923d1fd4ba028c345c15b6a57dab5 (diff)
downloadenigma2-c8724d0d7b016371309f189636b0992ea413bd96.tar.gz
enigma2-c8724d0d7b016371309f189636b0992ea413bd96.zip
add support for rbg565 color oled
Diffstat (limited to 'main/enigma.cpp')
-rw-r--r--main/enigma.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/enigma.cpp b/main/enigma.cpp
index 3f420b4b..b8554d58 100644
--- a/main/enigma.cpp
+++ b/main/enigma.cpp
@@ -172,11 +172,11 @@ int main(int argc, char **argv)
eTextPara::forceReplacementGlyph(i);
eWidgetDesktop dsk(eSize(720, 576));
- eWidgetDesktop dsk_lcd(eSize(132, 64));
-
+ eWidgetDesktop dsk_lcd(my_lcd_dc->size());
+
dsk.setStyleID(0);
- dsk_lcd.setStyleID(1);
-
+ dsk_lcd.setStyleID(my_lcd_dc->size().width() == 96 ? 2 : 1);
+
/* if (double_buffer)
{
eDebug(" - double buffering found, enable buffered graphics mode.");