X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconsumer_sdl.c;fp=src%2Fmodules%2Fsdl%2Fconsumer_sdl.c;h=06cbb2cbba89d9223c8e24bb3c5ee34ed63ee544;hb=c4612a42677dd9c1c781ead06461f2be6178cae8;hp=0736b9d3e95f96ea0a75fbd905ac68739e71341a;hpb=75f5626e0ad41b5e95fde34f90bf458856452b7e;p=melted diff --git a/src/modules/sdl/consumer_sdl.c b/src/modules/sdl/consumer_sdl.c index 0736b9d..06cbb2c 100644 --- a/src/modules/sdl/consumer_sdl.c +++ b/src/modules/sdl/consumer_sdl.c @@ -221,7 +221,17 @@ int consumer_start( mlt_consumer parent ) this->window_height = this->height; if ( this->sdl_screen == NULL && display_off == 0 ) + { + if ( mlt_properties_get_int( this->properties, "fullscreen" ) ) + { + const SDL_VideoInfo *vi = SDL_GetVideoInfo(); + this->window_width = vi->current_w; + this->window_height = vi->current_h; + this->sdl_flags |= SDL_FULLSCREEN; + SDL_ShowCursor( SDL_DISABLE ); + } this->sdl_screen = SDL_SetVideoMode( this->window_width, this->window_height, 0, this->sdl_flags ); + } pthread_create( &this->thread, NULL, consumer_thread, this ); }