diff --git a/src/neutrino.cpp b/src/neutrino.cpp index a37d5f42a..5900cf3a8 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1168,7 +1168,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 @@ -6073,6 +6073,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; } @@ -6090,6 +6093,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 5261c4c77..fa9ee1f8a 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -1347,7 +1347,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,