rename PIP_ROFF => PIP_NO_POS; add default statement

Origin commit data
------------------
Branch: ni/coolstream
Commit: f76412cd5d
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-11-19 (Sat, 19 Nov 2022)

Origin message was:
------------------
- rename PIP_ROFF => PIP_NO_POS; add default statement

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-11-19 22:26:54 +01:00
parent 95beb06e02
commit dda4a0c363
2 changed files with 8 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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,