From 0cecd08dba036f39e414e34a2b7c070008ee3884 Mon Sep 17 00:00:00 2001 From: sandman Date: Sat, 03 Aug 2002 23:58:20 +0000 Subject: Added support for fullscreen playback --- (limited to 'noncore/multimedia/opieplayer2/nullvideo.c') diff --git a/noncore/multimedia/opieplayer2/nullvideo.c b/noncore/multimedia/opieplayer2/nullvideo.c index 3a18a40..5ee8d5d 100644 --- a/noncore/multimedia/opieplayer2/nullvideo.c +++ b/noncore/multimedia/opieplayer2/nullvideo.c @@ -64,6 +64,7 @@ struct opie_frame_s { int ideal_width; int ideal_height; int output_width, output_height; + int gui_width, gui_height; uint8_t *chunk[3]; yuv2rgb_t *yuv2rgb; @@ -293,7 +294,8 @@ static void null_update_frame_format( vo_driver_t* self, vo_frame_t* img, || (flags != frame->flags) || (format != frame->format) || (this->user_ratio != frame->user_ratio) - || this->gui_changed ) { + || (this->gui_width != frame-> gui_width ) + || (this-> gui_height != frame-> gui_height)) { frame->width = width; frame->height = height; @@ -303,7 +305,8 @@ static void null_update_frame_format( vo_driver_t* self, vo_frame_t* img, frame->user_ratio = this->user_ratio; this->gui_changed = 0; // frame->show_video = this->m_show_video; - + frame->gui_width = this->gui_width; + frame->gui_height = this->gui_height; null_compute_ideal_size (this, frame); null_compute_rgb_size (this, frame); @@ -536,8 +539,8 @@ vo_driver_t* init_video_out_plugin( config_values_t* conf, vo->m_is_scaling = 0; vo->user_ratio = ASPECT_AUTO; vo->display_ratio = 1.0; - vo->gui_width = 200; - vo->gui_height = 150; + vo->gui_width = 16; + vo->gui_height = 8; vo->frameDis = NULL; /* install callback handlers*/ -- cgit v0.9.0.2