summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/nullvideo.c
authorsandman <sandman>2002-08-03 23:58:20 (UTC)
committer sandman <sandman>2002-08-03 23:58:20 (UTC)
commit0cecd08dba036f39e414e34a2b7c070008ee3884 (patch) (side-by-side diff)
treec187c9308f0553b1d5d9cd59093bcc3c11740665 /noncore/multimedia/opieplayer2/nullvideo.c
parent8fb605fdfbbcbc654f567efcb59f02ec0d26228a (diff)
downloadopie-0cecd08dba036f39e414e34a2b7c070008ee3884.zip
opie-0cecd08dba036f39e414e34a2b7c070008ee3884.tar.gz
opie-0cecd08dba036f39e414e34a2b7c070008ee3884.tar.bz2
Added support for fullscreen playback
Diffstat (limited to 'noncore/multimedia/opieplayer2/nullvideo.c') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/nullvideo.c11
1 files changed, 7 insertions, 4 deletions
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
@@ -65,4 +65,5 @@ struct opie_frame_s {
int ideal_height;
int output_width, output_height;
+ int gui_width, gui_height;
uint8_t *chunk[3];
@@ -294,5 +295,6 @@ static void null_update_frame_format( vo_driver_t* self, vo_frame_t* img,
|| (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;
@@ -304,5 +306,6 @@ static void null_update_frame_format( vo_driver_t* self, vo_frame_t* img,
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);
@@ -537,6 +540,6 @@ vo_driver_t* init_video_out_plugin( config_values_t* conf,
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;