aboutsummaryrefslogtreecommitdiff
path: root/main/enigma.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-10-06 11:55:09 +0200
committerghost <andreas.monzner@multimedia-labs.de>2010-10-06 11:55:09 +0200
commit37152843c915fd0a9352256d804ced4ff54c23c4 (patch)
treefbc7a5b7e428997e9feed5eac23b9960273545dd /main/enigma.cpp
parent03dba41f691f1ae6a315d0a13c5af66fdf93fbfd (diff)
parent27305d845d1bb4ca86a7e3e03b4c08cf3f3433fc (diff)
downloadenigma2-37152843c915fd0a9352256d804ced4ff54c23c4.tar.gz
enigma2-37152843c915fd0a9352256d804ced4ff54c23c4.zip
Merge remote branch 'origin/bug_530_add_dm800se_support'
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.");