Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale
- index 3a9f230..5a50710 100644
- --- a/data/locale/deutsch.locale
- +++ b/data/locale/deutsch.locale
- @@ -352,7 +352,7 @@ colormenu.fade Ein-/Ausblenden
- colormenu.font Verwendete Schriftart
- colormenu.font_ttx Teletext Schriftart
- colormenu.menucolors Farben
- -colormenu.osd_preset Monitor Auswahl
- +colormenu.osd_preset Auflösung
- colormenu.progressbar_active Farbe des aktiven Teil
- colormenu.progressbar_passive Hintergrundfarbe
- colormenu.textcolor Textfarbe
- @@ -1396,8 +1396,7 @@ menu.hint_opkg_install_local_package Paket von USB-Stick, SD, Freigabe oder loka
- menu.hint_opkg_upgrade Aktualisiert alle installierten Pakete auf die neueste verfügbare Version
- menu.hint_osd Farben, Schriftarten, Anzeigegröße, Ansichtsoptionen der Menüs usw.
- menu.hint_osd_language Wählen Sie ihre Menü-Sprache
- -menu.hint_osd_preset Wählen Sie zwischen Röhren-TV (CRT) oder Flachbildschirm (LCD)
- -menu.hint_osd_preset2 Wählen Sie zwischen Röhren-TV (CRT) oder Flachbildschirm (LCD HD/LCD FullHD)
- +menu.hint_osd_preset Wählen Sie eine Auflösung in der das OSD angezeigt werden soll
- menu.hint_osd_timing Einblendzeit, die das OSD auf dem TV angezeigt wird
- menu.hint_other_fonts Ändern Sie andere Schriftgrößen
- menu.hint_parentallock_changepin Geben Sie den 4-stelligen PIN-Code ein, der dann ggf. abgefragt wird
- diff --git a/data/locale/english.locale b/data/locale/english.locale
- index a28919f..a77eb48 100644
- --- a/data/locale/english.locale
- +++ b/data/locale/english.locale
- @@ -352,7 +352,7 @@ colormenu.fade Fade GUI
- colormenu.font Select GUI font
- colormenu.font_ttx Select Teletext font
- colormenu.menucolors Colors
- -colormenu.osd_preset TV preset
- +colormenu.osd_preset Resolution preset
- colormenu.progressbar_active Aktive part color
- colormenu.progressbar_passive Background
- colormenu.textcolor Text color
- @@ -1396,8 +1396,7 @@ menu.hint_opkg_install_local_package Install package from USB, SD, share or loca
- menu.hint_opkg_upgrade Updates all installed packages to the most recent version available
- menu.hint_osd Colors, fonts, screen size\nGUI look and feel options
- menu.hint_osd_language Select OSD language
- -menu.hint_osd_preset Pre-configured screen margins for CRT and LCD TV
- -menu.hint_osd_preset2 Pre-configured screen margins for CRT and LCD TV (LCD HD/LCD FullHD)
- +menu.hint_osd_preset Pre-configured screen resolutions for OSD
- menu.hint_osd_timing After this time the OSD will be faded out
- menu.hint_other_fonts Change other font sizes
- menu.hint_parentallock_changepin Change PIN code
- diff --git a/src/gui/osd_setup.cpp b/src/gui/osd_setup.cpp
- index 309762a..c431c18 100644
- --- a/src/gui/osd_setup.cpp
- +++ b/src/gui/osd_setup.cpp
- @@ -399,21 +399,13 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
- }
- -#ifdef BOXMODEL_APOLLO
- -#define OSD_PRESET_OPTIONS_COUNT 3
- -#else
- -#define OSD_PRESET_OPTIONS_COUNT 2
- -#endif
- -const CMenuOptionChooser::keyval_ext OSD_PRESET_OPTIONS[OSD_PRESET_OPTIONS_COUNT] =
- +const CMenuOptionChooser::keyval_ext OSD_PRESET_OPTIONS[] =
- {
- - { COsdSetup::PRESET_SD, NONEXISTANT_LOCALE, "CRT" },
- -#ifndef BOXMODEL_APOLLO
- - { COsdSetup::PRESET_HD, NONEXISTANT_LOCALE, "LCD" }
- -#else
- - { COsdSetup::PRESET_HD, NONEXISTANT_LOCALE, "LCD HD" },
- - { COsdSetup::PRESET_FULLHD, NONEXISTANT_LOCALE, "LCD FullHD" }
- -#endif
- + { COsdSetup::PRESET_HD_CRT, NONEXISTANT_LOCALE, "HD (CRT)" },
- + { COsdSetup::PRESET_HD, NONEXISTANT_LOCALE, "HD" },
- + { COsdSetup::PRESET_FULLHD, NONEXISTANT_LOCALE, "FullHD" }
- };
- +size_t osd_preset_options_count = sizeof(OSD_PRESET_OPTIONS)/sizeof(OSD_PRESET_OPTIONS[0]);
- #define INFOBAR_CASYSTEM_MODE_OPTION_COUNT 4
- const CMenuOptionChooser::keyval INFOBAR_CASYSTEM_MODE_OPTIONS[INFOBAR_CASYSTEM_MODE_OPTION_COUNT] =
- @@ -671,21 +663,11 @@ int COsdSetup::showOsdSetup()
- osd_menu->addItem(GenericMenuSeparatorLine);
- - //monitor
- - std::string tmp_loc;
- - int preset_count = OSD_PRESET_OPTIONS_COUNT;
- -#ifdef BOXMODEL_APOLLO
- - if (frameBuffer->fullHdAvailable())
- - tmp_loc = g_Locale->getText(LOCALE_MENU_HINT_OSD_PRESET2);
- - else {
- - tmp_loc = g_Locale->getText(LOCALE_MENU_HINT_OSD_PRESET);
- - preset_count--;
- - }
- -#else
- - tmp_loc = g_Locale->getText(LOCALE_MENU_HINT_OSD_PRESET);
- -#endif
- - CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_COLORMENU_OSD_PRESET, &g_settings.screen_preset, OSD_PRESET_OPTIONS, preset_count, true, this);
- - mc->setHint("", tmp_loc);
- + //resolutions
- + if (!frameBuffer->fullHdAvailable())
- + osd_preset_options_count--; // strip fullHD; FIXME: won't work, when more resolutions will be added
- + CMenuOptionChooser * mc = new CMenuOptionChooser(LOCALE_COLORMENU_OSD_PRESET, &g_settings.screen_preset, OSD_PRESET_OPTIONS, osd_preset_options_count, true, this);
- + mc->setHint("", LOCALE_MENU_HINT_OSD_PRESET);
- osd_menu->addItem(mc);
- //NI
- diff --git a/src/gui/osd_setup.h b/src/gui/osd_setup.h
- index aec8c14..825caf6 100644
- --- a/src/gui/osd_setup.h
- +++ b/src/gui/osd_setup.h
- @@ -104,7 +104,7 @@ class COsdSetup : public CMenuTarget, public CChangeObserver
- enum
- {
- - PRESET_SD,
- + PRESET_HD_CRT,
- PRESET_HD,
- PRESET_FULLHD
- };
- diff --git a/src/gui/screensetup.cpp b/src/gui/screensetup.cpp
- index 13d2f87..2ce71b2 100644
- --- a/src/gui/screensetup.cpp
- +++ b/src/gui/screensetup.cpp
- @@ -117,20 +117,18 @@ int CScreenSetup::exec(CMenuTarget* parent, const std::string &)
- g_settings.screen_StartY = y_coord[0];
- g_settings.screen_EndY = y_coord[1];
- switch (g_settings.screen_preset) {
- - case COsdSetup::PRESET_SD:
- + case COsdSetup::PRESET_HD_CRT:
- g_settings.screen_StartX_crt = g_settings.screen_StartX;
- g_settings.screen_StartY_crt = g_settings.screen_StartY;
- g_settings.screen_EndX_crt = g_settings.screen_EndX;
- g_settings.screen_EndY_crt = g_settings.screen_EndY;
- break;
- -#ifdef BOXMODEL_APOLLO
- case COsdSetup::PRESET_FULLHD:
- g_settings.screen_StartX_lcd_fullhd = g_settings.screen_StartX;
- g_settings.screen_StartY_lcd_fullhd = g_settings.screen_StartY;
- g_settings.screen_EndX_lcd_fullhd = g_settings.screen_EndX;
- g_settings.screen_EndY_lcd_fullhd = g_settings.screen_EndY;
- break;
- -#endif
- case COsdSetup::PRESET_HD:
- default:
- g_settings.screen_StartX_lcd = g_settings.screen_StartX;
- diff --git a/src/neutrino.cpp b/src/neutrino.cpp
- index 6bdd22f..98b5ca0 100644
- --- a/src/neutrino.cpp
- +++ b/src/neutrino.cpp
- @@ -999,20 +999,18 @@ void CNeutrinoApp::setScreenSettings()
- g_settings.screen_width = frameBuffer->getScreenWidth(true);
- g_settings.screen_height = frameBuffer->getScreenHeight(true);
- switch (g_settings.screen_preset) {
- - case COsdSetup::PRESET_SD:
- + case COsdSetup::PRESET_HD_CRT:
- g_settings.screen_StartX = g_settings.screen_StartX_crt;
- g_settings.screen_StartY = g_settings.screen_StartY_crt;
- g_settings.screen_EndX = g_settings.screen_EndX_crt;
- g_settings.screen_EndY = g_settings.screen_EndY_crt;
- break;
- -#ifdef BOXMODEL_APOLLO
- case COsdSetup::PRESET_FULLHD:
- g_settings.screen_StartX = g_settings.screen_StartX_lcd_fullhd;
- g_settings.screen_StartY = g_settings.screen_StartY_lcd_fullhd;
- g_settings.screen_EndX = g_settings.screen_EndX_lcd_fullhd;
- g_settings.screen_EndY = g_settings.screen_EndY_lcd_fullhd;
- break;
- -#endif
- case COsdSetup::PRESET_HD:
- default:
- g_settings.screen_StartX = g_settings.screen_StartX_lcd;
- @@ -1963,7 +1961,7 @@ void CNeutrinoApp::SetupFrameBuffer()
- else
- setFbMode = frameBuffer->setMode(1280, 720, 8 * sizeof(fb_pixel_t));
- #else
- - setFbMode = frameBuffer->setMode(720, 576, 8 * sizeof(fb_pixel_t));
- + setFbMode = frameBuffer->setMode(720, 576, 8 * sizeof(fb_pixel_t)); //FIXME - SD resolution for Nevis?
- #endif
- if (setFbMode == -1) {
- dprintf(DEBUG_NORMAL, "Error while setting framebuffer mode\n");
- diff --git a/src/system/locals.h b/src/system/locals.h
- index 57b8e40..ff951c3 100644
- --- a/src/system/locals.h
- +++ b/src/system/locals.h
- @@ -1424,7 +1424,6 @@ typedef enum
- LOCALE_MENU_HINT_OSD,
- LOCALE_MENU_HINT_OSD_LANGUAGE,
- LOCALE_MENU_HINT_OSD_PRESET,
- - LOCALE_MENU_HINT_OSD_PRESET2,
- LOCALE_MENU_HINT_OSD_TIMING,
- LOCALE_MENU_HINT_OTHER_FONTS,
- LOCALE_MENU_HINT_PARENTALLOCK_CHANGEPIN,
- diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h
- index f25648e..3b315af 100644
- --- a/src/system/locals_intern.h
- +++ b/src/system/locals_intern.h
- @@ -1424,7 +1424,6 @@ const char * locale_real_names[] =
- "menu.hint_osd",
- "menu.hint_osd_language",
- "menu.hint_osd_preset",
- - "menu.hint_osd_preset2",
- "menu.hint_osd_timing",
- "menu.hint_other_fonts",
- "menu.hint_parentallock_changepin",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement