Mercurial > mplayer.hg
comparison libvo/vo_xmga.c @ 15212:05aa13cdf92f
replace VO and VF numeric flags with #defined identifiers
author | henry |
---|---|
date | Mon, 18 Apr 2005 15:52:38 +0000 |
parents | e632b43f0598 |
children | 91d210e8a19c |
comparison
equal
deleted
inserted
replaced
15211:d42f22a1503b | 15212:05aa13cdf92f |
---|---|
175 if (use_gui) | 175 if (use_gui) |
176 guiGetEvent(guiSetShVideo, 0); // the GUI will set up / resize the window | 176 guiGetEvent(guiSetShVideo, 0); // the GUI will set up / resize the window |
177 else | 177 else |
178 #endif | 178 #endif |
179 { | 179 { |
180 if (flags & 1) | 180 if (flags & VOFLAG_FULLSCREEN) |
181 aspect(&dwidth, &dheight, A_ZOOM); | 181 aspect(&dwidth, &dheight, A_ZOOM); |
182 | 182 |
183 XGetWindowAttributes(mDisplay, mRootWin, &attribs); | 183 XGetWindowAttributes(mDisplay, mRootWin, &attribs); |
184 mDepth = attribs.depth; | 184 mDepth = attribs.depth; |
185 if (mDepth != 15 && mDepth != 16 && mDepth != 24 && mDepth != 32) | 185 if (mDepth != 15 && mDepth != 16 && mDepth != 24 && mDepth != 32) |
235 vo_x11_sizehint(vo_dx, vo_dy, vo_dwidth, vo_dheight, 0); | 235 vo_x11_sizehint(vo_dx, vo_dy, vo_dwidth, vo_dheight, 0); |
236 | 236 |
237 XStoreName(mDisplay, vo_window, mTitle); | 237 XStoreName(mDisplay, vo_window, mTitle); |
238 XMapWindow(mDisplay, vo_window); | 238 XMapWindow(mDisplay, vo_window); |
239 | 239 |
240 if (flags & 1) | 240 if (flags & VOFLAG_FULLSCREEN) |
241 vo_x11_fullscreen(); | 241 vo_x11_fullscreen(); |
242 | 242 |
243 #ifdef HAVE_XINERAMA | 243 #ifdef HAVE_XINERAMA |
244 vo_x11_xinerama_move(mDisplay, vo_window); | 244 vo_x11_xinerama_move(mDisplay, vo_window); |
245 #endif | 245 #endif |
246 } else if (!(flags & 1)) | 246 } else if (!(flags & VOFLAG_FULLSCREEN)) |
247 XMoveResizeWindow(mDisplay, vo_window, vo_dx, vo_dy, | 247 XMoveResizeWindow(mDisplay, vo_window, vo_dx, vo_dy, |
248 vo_dwidth, vo_dheight); | 248 vo_dwidth, vo_dheight); |
249 } | 249 } |
250 | 250 |
251 if (vo_gc != None) | 251 if (vo_gc != None) |
252 XFreeGC(mDisplay, vo_gc); | 252 XFreeGC(mDisplay, vo_gc); |
253 vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &wGCV); | 253 vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &wGCV); |
254 | 254 |
255 } // !GUI | 255 } // !GUI |
256 | 256 |
257 if ((flags & 1) && (!WinID)) | 257 if ((flags & VOFLAG_FULLSCREEN) && (!WinID)) |
258 { | 258 { |
259 vo_dx = 0; | 259 vo_dx = 0; |
260 vo_dy = 0; | 260 vo_dy = 0; |
261 vo_dwidth = vo_screenwidth; | 261 vo_dwidth = vo_screenwidth; |
262 vo_dheight = vo_screenheight; | 262 vo_dheight = vo_screenheight; |