]> git.sesse.net Git - mlt/commitdiff
SDL tweaks for Windows discovered when embedded.
authorDan Dennedy <dan@dennedy.org>
Mon, 17 Jan 2011 08:42:40 +0000 (00:42 -0800)
committerDan Dennedy <dan@dennedy.org>
Mon, 24 Jan 2011 01:39:43 +0000 (17:39 -0800)
src/modules/sdl/consumer_sdl.c
src/modules/sdl/consumer_sdl_still.c

index 53310b7df4f54e90e8a9f6e566f27e7869539409..c0ee872a9e29830d5dc99f2550e31050722b0518 100644 (file)
@@ -140,7 +140,7 @@ mlt_consumer consumer_sdl_init( mlt_profile profile, mlt_service_type type, cons
        
                // Set the sdl flags
                this->sdl_flags = SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL | SDL_DOUBLEBUF;
-#if !defined(__DARWIN__) && !defined(WIN32)
+#if !defined(__DARWIN__)
                this->sdl_flags |= SDL_RESIZABLE;
 #endif         
                // Allow thread to be started/stopped
index 57dc410662494c3689606d5b5302ebc90ca8fe86..1ef82b8766556e53e71b8e1bb4ccfdd2bb9da2e9 100644 (file)
@@ -163,7 +163,7 @@ static int consumer_start( mlt_consumer parent )
 
                // Default window size
                double display_ratio = mlt_properties_get_double( this->properties, "display_ratio" );
-               this->window_width = ( double )this->height * display_ratio;
+               this->window_width = ( double )this->height * display_ratio + 0.5;
                this->window_height = this->height;
 
                if ( sdl_started == 0 && preview_off == 0 )