aboutsummaryrefslogtreecommitdiffstats
path: root/win/rfb_win32/SInput.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-02-25 15:16:18 +0100
committerPierre Ossman <ossman@cendio.se>2024-08-12 16:46:15 +0200
commit9fae0999d3efa7a04698d639f7bd842ede7a83d2 (patch)
tree6dda527a4b03cd15f7292e95fb13883e434f3367 /win/rfb_win32/SInput.cxx
parent5c3371d8e7e58fd873699c5309e5a74ed0e9fac4 (diff)
downloadtigervnc-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.cxx2
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;