implement borders for ePixmap widgets (add feature #589)
[enigma2.git] / main / enigma.cpp
index 3f420b4bb6ee2e996e5a863dc42d457fc8073ae5..b8554d582c1b72f6788002509a36ae3c6a4f698d 100644 (file)
@@ -172,11 +172,11 @@ int main(int argc, char **argv)
                eTextPara::forceReplacementGlyph(i);
 
        eWidgetDesktop dsk(eSize(720, 576));
                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.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.");
 /*     if (double_buffer)
        {
                eDebug(" - double buffering found, enable buffered graphics mode.");