From 75380fd27d175bab1818ef35a9100e74fc6a461b Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Wed, 9 Jan 2008 22:19:25 +0000 Subject: mpegplayer on grayscale targets: use greylib to display all text and graphics with the video images. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16042 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/video_thread.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'apps/plugins/mpegplayer/video_thread.c') diff --git a/apps/plugins/mpegplayer/video_thread.c b/apps/plugins/mpegplayer/video_thread.c index 6a54706942..4fc428d522 100644 --- a/apps/plugins/mpegplayer/video_thread.c +++ b/apps/plugins/mpegplayer/video_thread.c @@ -72,10 +72,10 @@ static void draw_fps(struct video_thread_data *td) rb->snprintf(str, sizeof(str), "%d.%02d %d %d ", fps / 100, fps % 100, td->num_skipped, td->info->display_picture->temporal_reference); - rb->lcd_putsxy(0, 0, str); + lcd_(putsxy)(0, 0, str); vo_lock(); - rb->lcd_update_rect(0, 0, LCD_WIDTH, 8); + lcd_(update_rect)(0, 0, LCD_WIDTH, 8); vo_unlock(); td->last_showfps = *rb->current_tick; @@ -489,7 +489,7 @@ static void video_thread_msg(struct video_thread_data *td) case STREAM_STOP: if (td->state == TSTATE_DATA) - stream_clear_notify(&audio_str, DISK_BUF_DATA_NOTIFY); + stream_clear_notify(&video_str, DISK_BUF_DATA_NOTIFY); td->status = STREAM_STOPPED; td->state = TSTATE_EOS; @@ -522,14 +522,12 @@ static void video_thread_msg(struct video_thread_data *td) rb->lcd_update(); vo_unlock(); } -#else - GRAY_FLUSH_ICACHE(); #endif break; case STREAM_RESET: if (td->state == TSTATE_DATA) - stream_clear_notify(&audio_str, DISK_BUF_DATA_NOTIFY); + stream_clear_notify(&video_str, DISK_BUF_DATA_NOTIFY); td->state = TSTATE_INIT; td->status = STREAM_STOPPED; -- cgit v1.2.3