Skip to content

Commit

Permalink
fixed osd_update
Browse files Browse the repository at this point in the history
  • Loading branch information
eindano committed Aug 4, 2013
1 parent fd2cbcc commit 93bbdc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion input.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ static void input_thread(struct msgqueue_t* msgqueue)
}
}
if (c != -1) {
// remove key repeat within 200 ms (todo: fix a better solution)
now = current_timestamp();
//printf("time %u %u %u\n", lastTime, now, now-lastTime);
if ( c != last_c || (now - lastTime) > 200) {
msgqueue_add(msgqueue,c);
lastTime = now;
Expand Down
11 changes: 5 additions & 6 deletions osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,12 +730,11 @@ void osd_update(struct osd_t* osd, int channel_id)
}
break;
case OSD_CHANNELLIST:
/* channels_geteventid(osd->channellist_selected_channel, &event, &server);
if (osd->event != event) {
osd_channellist_show_events(osd, osd->channellist_selected_channel);
osd_update = 1;
}
*/
channels_geteventid(osd->model_channellist.channel[osd->model_channellist_current.selectedIndex].id, &event, &server);
if (osd->event != event) {
osd_channellist_event_init(osd, osd->model_channellist.channel[osd->model_channellist_current.selectedIndex].id);
osd_view(osd, OSD_CHANNELLIST);
}
break;
}

Expand Down

0 comments on commit 93bbdc2

Please sign in to comment.