Fixed fullscreen mode

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5046 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nick 2002-03-11 09:01:43 +00:00
parent d7b1d1c88d
commit 8840c8bac6
1 changed files with 3 additions and 1 deletions

View File

@ -283,6 +283,8 @@ if (vo_window == None)
d_width = vo_screenwidth; d_width = vo_screenwidth;
d_height = vo_screenheight; d_height = vo_screenheight;
} }
window_width = vo_screenwidth;
window_height = vo_screenheight;
} }
#endif #endif
@ -296,7 +298,7 @@ if (vo_window == None)
window_depth = 24; window_depth = 24;
XMatchVisualInfo(mDisplay, mScreen, window_depth, TrueColor, &vinfo); XMatchVisualInfo(mDisplay, mScreen, window_depth, TrueColor, &vinfo);
xswa.background_pixel = fgColor; //BlackPixel(mDisplay, mScreen); xswa.background_pixel = vo_fs ? BlackPixel(mDisplay, mScreen) : fgColor;
xswa.border_pixel = 0; xswa.border_pixel = 0;
xswa.colormap = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen), xswa.colormap = XCreateColormap(mDisplay, RootWindow(mDisplay, mScreen),
vinfo.visual, AllocNone); vinfo.visual, AllocNone);