diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-02-25 15:16:18 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-08-12 16:46:15 +0200 |
commit | 9fae0999d3efa7a04698d639f7bd842ede7a83d2 (patch) | |
tree | 6dda527a4b03cd15f7292e95fb13883e434f3367 /win/rfb_win32/SInput.cxx | |
parent | 5c3371d8e7e58fd873699c5309e5a74ed0e9fac4 (diff) | |
download | tigervnc-9fae0999d3efa7a04698d639f7bd842ede7a83d2.tar.gz tigervnc-9fae0999d3efa7a04698d639f7bd842ede7a83d2.zip |
Better type for pointer button mask
This is a very limited bit field, so use an 8 bit type to clearly show
how many bits are available.
Diffstat (limited to 'win/rfb_win32/SInput.cxx')
-rw-r--r-- | win/rfb_win32/SInput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/rfb_win32/SInput.cxx b/win/rfb_win32/SInput.cxx index 94df6e98..65d4a703 100644 --- a/win/rfb_win32/SInput.cxx +++ b/win/rfb_win32/SInput.cxx @@ -65,7 +65,7 @@ win32::SPointer::SPointer() } void -win32::SPointer::pointerEvent(const Point& pos, int buttonmask) +win32::SPointer::pointerEvent(const Point& pos, uint8_t buttonmask) { // - We are specifying absolute coordinates DWORD flags = MOUSEEVENTF_ABSOLUTE; |