Mercurial > mplayer.hg
comparison libvo/vo_xvidix.c @ 31315:ad274a5b093b
For vos that support the new libvo API (provide UPDATE_SCREENINFO),
avoid duplicating some Gui-related code.
author | reimar |
---|---|
date | Sun, 13 Jun 2010 12:04:13 +0000 |
parents | 7681eab10aea |
children | 09dd92639e7b |
comparison
equal
deleted
inserted
replaced
31314:c69ecf7d80a4 | 31315:ad274a5b093b |
---|---|
46 #include "aspect.h" | 46 #include "aspect.h" |
47 #include "mp_msg.h" | 47 #include "mp_msg.h" |
48 | 48 |
49 #include "vosub_vidix.h" | 49 #include "vosub_vidix.h" |
50 #include "vidix/vidix.h" | 50 #include "vidix/vidix.h" |
51 | |
52 #ifdef CONFIG_GUI | |
53 #include "gui/interface.h" | |
54 #endif | |
55 | |
56 | 51 |
57 static const vo_info_t info = { | 52 static const vo_info_t info = { |
58 "X11 (VIDIX)", | 53 "X11 (VIDIX)", |
59 "xvidix", | 54 "xvidix", |
60 "Alex Beregszaszi", | 55 "Alex Beregszaszi", |
250 "Sorry, this (%d) color depth is not supported\n", | 245 "Sorry, this (%d) color depth is not supported\n", |
251 vo_depthonscreen); | 246 vo_depthonscreen); |
252 } | 247 } |
253 mp_msg(MSGT_VO, MSGL_V, "Using colorkey: %x\n", colorkey); | 248 mp_msg(MSGT_VO, MSGL_V, "Using colorkey: %x\n", colorkey); |
254 | 249 |
255 #ifdef CONFIG_GUI | |
256 if (use_gui) | |
257 guiGetEvent(guiSetShVideo, 0); // the GUI will set up / resize the window | |
258 else | |
259 { | |
260 #endif | |
261 | |
262 #ifdef X11_FULLSCREEN | 250 #ifdef X11_FULLSCREEN |
263 if ((flags & VOFLAG_FULLSCREEN) || (flags & VOFLAG_SWSCALE)) | 251 if ((flags & VOFLAG_FULLSCREEN) || (flags & VOFLAG_SWSCALE)) |
264 aspect(&d_width, &d_height, A_ZOOM); | 252 aspect(&d_width, &d_height, A_ZOOM); |
265 #endif | 253 #endif |
266 dwidth = d_width; | 254 dwidth = d_width; |
286 | 274 |
287 vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, | 275 vo_x11_create_vo_window(&vinfo, vo_dx, vo_dy, |
288 window_width, window_height, flags, | 276 window_width, window_height, flags, |
289 CopyFromParent, "xvidix", title); | 277 CopyFromParent, "xvidix", title); |
290 XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); | 278 XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa); |
291 | |
292 #ifdef CONFIG_GUI | |
293 } | |
294 #endif | |
295 | 279 |
296 if ((!WinID) && (flags & VOFLAG_FULLSCREEN)) | 280 if ((!WinID) && (flags & VOFLAG_FULLSCREEN)) |
297 { | 281 { |
298 vo_dx = 0; | 282 vo_dx = 0; |
299 vo_dy = 0; | 283 vo_dy = 0; |