Mercurial > mplayer.hg
comparison libvo/vo_xmga.c @ 4784:64be405bab7b
ExposureMask fixed.
author | pontscho |
---|---|
date | Thu, 21 Feb 2002 13:28:39 +0000 |
parents | 81b8518d11ed |
children | b18e61cb457a |
comparison
equal
deleted
inserted
replaced
4783:17f29765ea77 | 4784:64be405bab7b |
---|---|
300 if ( mDepth != 15 && mDepth != 16 && mDepth != 24 && mDepth != 32 ) mDepth=24; | 300 if ( mDepth != 15 && mDepth != 16 && mDepth != 24 && mDepth != 32 ) mDepth=24; |
301 XMatchVisualInfo( mDisplay,mScreen,mDepth,TrueColor,&vinfo ); | 301 XMatchVisualInfo( mDisplay,mScreen,mDepth,TrueColor,&vinfo ); |
302 xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone ); | 302 xWAttribs.colormap=XCreateColormap( mDisplay,RootWindow( mDisplay,mScreen ),vinfo.visual,AllocNone ); |
303 xWAttribs.background_pixel=0; | 303 xWAttribs.background_pixel=0; |
304 xWAttribs.border_pixel=0; | 304 xWAttribs.border_pixel=0; |
305 xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask; | 305 xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | ButtonReleaseMask; |
306 xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; | 306 xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask; |
307 | 307 |
308 if ( WinID>=0 ){ | 308 if ( WinID>=0 ){ |
309 mWindow = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen); | 309 mWindow = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen); |
310 XUnmapWindow( mDisplay,mWindow ); | 310 XUnmapWindow( mDisplay,mWindow ); |
328 hint.base_width=wndWidth; hint.base_height=wndHeight; | 328 hint.base_width=wndWidth; hint.base_height=wndHeight; |
329 hint.flags=USPosition | USSize; | 329 hint.flags=USPosition | USSize; |
330 XSetNormalHints( mDisplay,mWindow,&hint ); | 330 XSetNormalHints( mDisplay,mWindow,&hint ); |
331 XStoreName( mDisplay,mWindow,mTitle ); | 331 XStoreName( mDisplay,mWindow,mTitle ); |
332 XMapWindow( mDisplay,mWindow ); | 332 XMapWindow( mDisplay,mWindow ); |
333 | |
334 XSelectInput(mDisplay, mWindow, StructureNotifyMask | KeyPressMask | |
335 #ifdef HAVE_NEW_INPUT | |
336 | ButtonPressMask | ButtonReleaseMask | |
337 #endif | |
338 ); | |
339 | 333 |
340 #ifdef HAVE_XINERAMA | 334 #ifdef HAVE_XINERAMA |
341 vo_x11_xinerama_move(mDisplay,mWindow); | 335 vo_x11_xinerama_move(mDisplay,mWindow); |
342 #endif | 336 #endif |
343 mGC=XCreateGC( mDisplay,mWindow,GCForeground,&wGCV ); | 337 mGC=XCreateGC( mDisplay,mWindow,GCForeground,&wGCV ); |