neutrino eventlist: fix some compiler warnings because of copmarsion of unsigned and signed int variables

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1790 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: dcf553b109
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-10-29 (Sat, 29 Oct 2011)

Origin message was:
------------------
*neutrino eventlist: fix some compiler warnings because of copmarsion of unsigned and signed int variables

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1790 e54a6e83-5905-42d5-8d5c-058d10e6a962


------------------
This commit was generated by Migit
This commit is contained in:
2011-10-28 22:15:59 +00:00
parent f7b3a65c03
commit 5e6b5cee3f

View File

@@ -344,9 +344,9 @@ int EventList::exec(const t_channel_id channel_id, const std::string& channelnam
int step = 0; int step = 0;
int prev_selected = selected; int prev_selected = selected;
if ((g_settings.key_channelList_addremind != CRCInput::RC_nokey) || if ((g_settings.key_channelList_addremind != (int)CRCInput::RC_nokey) ||
((g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) && ((g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) &&
(g_settings.key_channelList_addrecord != CRCInput::RC_nokey))) (g_settings.key_channelList_addrecord != (int)CRCInput::RC_nokey)))
{ {
paint_buttonbar = true; paint_buttonbar = true;
} }
@@ -368,7 +368,7 @@ int EventList::exec(const t_channel_id channel_id, const std::string& channelnam
if (((evtlist.size() / listmaxshow) + 1) * listmaxshow == evtlist.size() + listmaxshow) // last page has full entries if (((evtlist.size() / listmaxshow) + 1) * listmaxshow == evtlist.size() + listmaxshow) // last page has full entries
selected = 0; selected = 0;
else else
selected = ((step == listmaxshow) && (selected < (((evtlist.size() / listmaxshow) + 1) * listmaxshow))) ? (evtlist.size() - 1) : 0; selected = ((step == (int)listmaxshow) && (selected < (((evtlist.size() / listmaxshow) + 1) * listmaxshow))) ? (evtlist.size() - 1) : 0;
} }
} }
paintItem(prev_selected - liststart, channel_id); paintItem(prev_selected - liststart, channel_id);
@@ -889,11 +889,12 @@ struct button_label EventListFourthButton[NUM_EVENTLIST_FOURTH_BUTTON] =
void EventList::showFunctionBar (bool show, t_channel_id channel_id) void EventList::showFunctionBar (bool show, t_channel_id channel_id)
{ {
int bx = x + 8; int border_space = 4;
int bx = x + 2*border_space;
int bw = width - 16; int bw = width - 16;
int bh = iheight; int bh = iheight;
int by = y + height-iheight; int by = y + height-iheight;
int w_button = bw / 4;// 4 cells int w_button = bw / 4 - border_space;// 4 cells
CColorKeyHelper keyhelper; //user_menue.h CColorKeyHelper keyhelper; //user_menue.h
neutrino_msg_t dummy = CRCInput::RC_nokey; neutrino_msg_t dummy = CRCInput::RC_nokey;