[Ohrrpgce] SVN: teeemcee/8054 C+1: merge defaultmousecursor changes from r8040, 8043-8047:
subversion at HamsterRepublic.com
subversion at HamsterRepublic.com
Mon Jun 6 06:32:50 PDT 2016
teeemcee
2016-06-06 06:32:50 -0700 (Mon, 06 Jun 2016)
1857
C+1: merge defaultmousecursor changes from r8040,8043-8047:
r8040: gfx_fb: integer -> bool, etc, cleanup
r8043: Rename unhidemousecursor to showmousecursor, and don't disable mouse clipping implicitly anymore.
Instead, explicitly disable clipping in the two places (in Game) where it
might affect clipping.
r8044: gfx_alleg: integer -> bool, etc, cleanup
r8045: Mouse cursor visibility now has 3 states: hidden, visible, default (mouse not in use)
Implemented in gfx_alleg/fb/sdl. gfx_alleg not tested.
'default' makes the cursor hidden in fullscreen and visible when windowed.
However gfx_fb loses track of whether it's running fullscreen when alt+enter
is used, so gfx_fb instead defaults to visible in Custom and hidden in Game.
Added defaultmousecursor, getcursorvisibility, setcursorvisibility.
The "show mouse cursor" command now works in fullscreen, as does the slice
editor's use of showmousecursor.
r8046: gfx_directx: Rewrote cursor visibility handling to support io_setmousevisibility(cursorDefault)
If an old copy of gfx_directx.dll is used with a new game/custom then
cursorDefault acts as cursorHidden. There's no problem if a new copy of
gfx_directx.dll is used with an old game/custom (though I didn't actually test)
Bumped version to 1.19.
I noticed that the use of WM_NCHITTEST to check whether the mouse is on the
client area is dubious according to winapi docs.
r8047: Game and Custom now use defaultmousecursor unless in a menu/game that's explicit
defaultmousecursor is the default, so Custom doesn't explicitly need to do
anything; I simply replaced a bunch of calls to showmousecursor when leaving
a menu.
When Custom actually supports the mouse everywhere, it should default to
showmousecursor.
---
U rel/callipygous/allmodex.bas
U rel/callipygous/allmodex.bi
U rel/callipygous/common.rbas
U rel/callipygous/custom.bas
U rel/callipygous/drawing.bas
U rel/callipygous/game.bas
U rel/callipygous/gfx.bi
U rel/callipygous/gfx.new.h
U rel/callipygous/gfx_alleg.bas
U rel/callipygous/gfx_directx/gfx_directx.cpp
U rel/callipygous/gfx_directx/gfx_directx.h
U rel/callipygous/gfx_directx/gfx_directx.new.h
U rel/callipygous/gfx_directx/gfx_directx_test1.cpp
U rel/callipygous/gfx_directx/mouse.cpp
U rel/callipygous/gfx_directx/mouse.h
U rel/callipygous/gfx_directx/release.txt
U rel/callipygous/gfx_directx/version.h
U rel/callipygous/gfx_directx.dll
U rel/callipygous/gfx_fb.bas
U rel/callipygous/gfx_sdl.bas
U rel/callipygous/scriptcommands.bas
U rel/callipygous/sliceedit.bas
U rel/callipygous/whatsnew.txt
More information about the Ohrrpgce
mailing list