1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 14:12:10 +00:00
mpv/video
James Ross-Gowan d784759bc0 w32_common: show the cursor in the window border
When the cursor was in the window border, it could be hidden but it
wouldn't appear again, since mpv doesn't process mouse input there.

The code used ShowCursor, which is a horrid stateful API designed for
mouseless Win16 systems that incremented or decremented a global counter
to keep track of how many applications needed to display a special
cursor (like a busy cursor.) Replace that with a simple flag, handle
WM_SETCURSOR and use SetCursor(NULL) to hide the mouse cursor, but only
when the mouse is in the client area. DefWindowProc will set the correct
cursor on the border as long as it isn't hidden with ShowCursor.

PowerPoint also uses SetCursor(NULL) to hide the cursor when showing a
presentation, so it's probably safe.

See http://blogs.msdn.com/b/oldnewthing/archive/2009/12/17/9937972.aspx
2013-07-21 18:05:22 +02:00
..
decode video: remove fullscreen flags chaos 2013-07-18 14:07:21 +02:00
filter video: remove fullscreen flags chaos 2013-07-18 14:07:21 +02:00
out w32_common: show the cursor in the window border 2013-07-21 18:05:22 +02:00
csputils.c sd_add: add terrible hack for (xy-)vsfilter compatibility 2013-07-15 02:01:37 +02:00
csputils.h sd_add: add terrible hack for (xy-)vsfilter compatibility 2013-07-15 02:01:37 +02:00
fmt-conversion.c Fix compilation with Libav 2013-05-01 17:02:06 +02:00
fmt-conversion.h
image_writer.c sws_utils: make hq swscale flags available with mp_sws_hq_flags 2013-07-18 13:48:57 +02:00
image_writer.h image_writer: Add PNG filter option (default "mixed") 2013-06-15 15:48:52 +02:00
img_format.c img_format: fix broken condition 2013-05-06 23:11:10 +02:00
img_format.h img_format: comment on some pixel formats 2013-07-18 13:49:33 +02:00
img_fourcc.h core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
memcpy_pic.h
mp_image_pool.c
mp_image_pool.h
mp_image.c img_format: add a mask for color class 2013-07-18 13:49:28 +02:00
mp_image.h img_format: add a mask for color class 2013-07-18 13:49:28 +02:00
sws_utils.c sws_utils: make hq swscale flags available with mp_sws_hq_flags 2013-07-18 13:48:57 +02:00
sws_utils.h sws_utils: make hq swscale flags available with mp_sws_hq_flags 2013-07-18 13:48:57 +02:00
vfcap.h core: simplify OSD capability handling, remove VFCAP_OSD 2013-03-01 11:16:01 +01:00