[MPlayer-dev-eng] [PATCH] Warp cursor to 0,0 on fullscreen
Wander Winkelhorst
wander at f1racing.net
Thu Jul 25 19:45:02 CEST 2002
Hello,
This is just a quick fix for mplayer to warp the cursor to 0,0 on
fullscreen. That way fullscreen video will be centered automaticly for
people who use virtual resolutions. Right now you have to do this
yourself.
Regards,
Wander
-------------- next part --------------
diff -Naur /tmp/MPlayer-20020725/libvo/x11_common.c ./libvo/x11_common.c
--- /tmp/MPlayer-20020725/libvo/x11_common.c Thu Jun 13 00:57:58 2002
+++ ./libvo/x11_common.c Thu Jul 25 19:38:39 2002
@@ -760,6 +760,7 @@
{ vo_fs=VO_FALSE; x=vo_old_x; y=vo_old_y; w=vo_old_width; h=vo_old_height; }
else { vo_fs=VO_TRUE; vo_old_x=vo_dx; vo_old_y=vo_dy; vo_old_width=vo_dwidth; vo_old_height=vo_dheight; }
+ XWarpPointer( mDisplay, None, DefaultRootWindow(mDisplay), 0, 0, 0, 0, 0, 0 );
vo_x11_decoration( mDisplay,vo_window,(vo_fs) ? 0 : 1 );
vo_x11_sizehint( x,y,w,h,0 );
vo_x11_setlayer( vo_fs );
More information about the MPlayer-dev-eng
mailing list