X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fguicast%2Fbcbitmap.C;h=c508de5c00edcbffa56113a375a533408689e5c9;hb=5aad2133f228b736f033d6c48e1629078b858286;hp=8289c5994a155433bfc9ef5e3c52a8ed31f05c4a;hpb=425f9eab2f37d52e16e7ebdcd4b78f6de7ed68e7;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/guicast/bcbitmap.C b/cinelerra-5.0/guicast/bcbitmap.C index 8289c599..c508de5c 100644 --- a/cinelerra-5.0/guicast/bcbitmap.C +++ b/cinelerra-5.0/guicast/bcbitmap.C @@ -319,6 +319,8 @@ int BC_Bitmap::initialize(BC_WindowBase *parent_window, this->parent_window = parent_window; this->top_level = parent_window->top_level; this->xv_portid = resources->use_xvideo ? top_level->xvideo_port_id : -1; + if( w < 1 ) w = 1; + if( h < 1 ) h = 1; this->w = w; this->h = h; this->color_model = color_model;