Mercurial > mplayer.hg
comparison libvo/vo_gl.c @ 27927:6f199f065e15
Factor common code like -wid handling, vo_gc creation etc. out into
x11_common.c
author | reimar |
---|---|
date | Wed, 19 Nov 2008 20:19:25 +0000 |
parents | b59875975f93 |
children | 292b260ac2df |
comparison
equal
deleted
inserted
replaced
27926:a02c39208d49 | 27927:6f199f065e15 |
---|---|
471 #endif | 471 #endif |
472 #ifdef GL_WIN32 | 472 #ifdef GL_WIN32 |
473 if (!vo_w32_config(d_width, d_height, flags)) | 473 if (!vo_w32_config(d_width, d_height, flags)) |
474 return -1; | 474 return -1; |
475 #else | 475 #else |
476 vo_mouse_autohide = 1; | |
477 if (WinID >= 0) { | |
478 vo_window = WinID ? (Window)WinID : mRootWin; | |
479 vo_x11_selectinput_witherr(mDisplay, vo_window, | |
480 StructureNotifyMask | KeyPressMask | PointerMotionMask | | |
481 ButtonPressMask | ButtonReleaseMask | ExposureMask); | |
482 goto glconfig; | |
483 } | |
484 { | 476 { |
485 XVisualInfo *vinfo=glXChooseVisual( mDisplay,mScreen,wsGLXAttrib ); | 477 XVisualInfo *vinfo=glXChooseVisual( mDisplay,mScreen,wsGLXAttrib ); |
486 if (vinfo == NULL) | 478 if (vinfo == NULL) |
487 { | 479 { |
488 mp_msg(MSGT_VO, MSGL_ERR, "[gl] no GLX support present\n"); | 480 mp_msg(MSGT_VO, MSGL_ERR, "[gl] no GLX support present\n"); |