diff --git a/src/neutrino.cpp b/src/neutrino.cpp index d305a5dc2..8bbfca541 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1180,7 +1180,7 @@ int CNeutrinoApp::loadSetup(const char *fname) g_settings.pip_radio_width = configfile.getInt32("pip_radio_width", g_settings.pip_width); g_settings.pip_radio_height = configfile.getInt32("pip_radio_height", g_settings.pip_height); - g_settings.pip_rotate_lastpos = configfile.getInt32("pip_rotate_lastpos", PIP_ROFF); + g_settings.pip_rotate_lastpos = configfile.getInt32("pip_rotate_lastpos", PIP_NO_POS); #endif #if ENABLE_QUADPIP @@ -6185,6 +6185,9 @@ int CNeutrinoApp::pip_recalc_pos_x(int x) case PIP_DOWN_RIGHT: new_x = g_settings.screen_width - g_settings.pip_width - x; break; + case PIP_NO_POS: + default: + break; } return new_x; } @@ -6202,6 +6205,9 @@ int CNeutrinoApp::pip_recalc_pos_y(int y) case PIP_DOWN_LEFT: new_y = g_settings.screen_height - g_settings.pip_height - y; break; + case PIP_NO_POS: + default: + break; } return new_y; } diff --git a/src/system/settings.h b/src/system/settings.h index 3fea13df4..dc5710a51 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -1356,7 +1356,7 @@ const time_settings_struct_t handling_infobar_setting[SNeutrinoSettings::HANDLIN enum { - PIP_ROFF = -1, + PIP_NO_POS = -1, PIP_UP_LEFT = 0, PIP_UP_RIGHT = 1, PIP_DOWN_RIGHT = 2,