]> git.sesse.net Git - mlt/commitdiff
consumer_sdl.c: added support for fullscreen with no mouse through the "fullscreen...
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 12 Aug 2008 23:45:12 +0000 (23:45 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Tue, 12 Aug 2008 23:45:12 +0000 (23:45 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1178 d19143bc-622f-0410-bfdd-b5b2a6649095

configure
src/modules/sdl/consumer_sdl.c

index 050f55a664901096bb8f072d2fe87d3d06b167bb..2b3e755381a60b2726dcf11edaee3876f6d03ac6 100755 (executable)
--- 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()
index 0736b9d3e95f96ea0a75fbd905ac68739e71341a..06cbb2cbba89d9223c8e24bb3c5ee34ed63ee544 100644 (file)
@@ -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 );
        }