# HG changeset patch # User arpi # Date 1003760388 0 # Node ID 2f8f83ddbab3f1f7a517a9586e7e49fb02b8eb0b # Parent e87cbb7db151296d70e845004139b670fc0c0f9e -screenw/h patch by Tomi.Ollila@sonera.com diff -r e87cbb7db151 -r 2f8f83ddbab3 libvo/x11_common.c --- a/libvo/x11_common.c Mon Oct 22 12:57:43 2001 +0000 +++ b/libvo/x11_common.c Mon Oct 22 14:19:48 2001 +0000 @@ -151,8 +151,10 @@ else #endif { - vo_screenwidth=DisplayWidth( mDisplay,mScreen ); - vo_screenheight=DisplayHeight( mDisplay,mScreen ); + if (! vo_screenwidth) + vo_screenwidth=DisplayWidth( mDisplay,mScreen ); + if (! vo_screenheight) + vo_screenheight=DisplayHeight( mDisplay,mScreen ); } // get color depth (from root window, or the best visual): XGetWindowAttributes(mDisplay, mRootWin, &attribs);