From c4612a42677dd9c1c781ead06461f2be6178cae8 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Tue, 12 Aug 2008 23:45:12 +0000 Subject: [PATCH] consumer_sdl.c: added support for fullscreen with no mouse through the "fullscreen" property. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1178 d19143bc-622f-0410-bfdd-b5b2a6649095 --- configure | 2 +- src/modules/sdl/consumer_sdl.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 050f55a..2b3e755 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #!/bin/bash -export version=0.3.0 +export version=0.3.1 export soversion=1 show_help() 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 ); } -- 1.7.4.4