From 6881c895ab317bd302addac5f228b7367136017f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Sat, 10 Sep 2022 13:19:41 +0200 Subject: Use stdint types Avoid having our own custom stuff and instead use the modern, standard types, for familiarity. --- common/rfb/VNCSConnectionST.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/rfb/VNCSConnectionST.h') diff --git a/common/rfb/VNCSConnectionST.h b/common/rfb/VNCSConnectionST.h index 72b0c529..23215d24 100644 --- a/common/rfb/VNCSConnectionST.h +++ b/common/rfb/VNCSConnectionST.h @@ -71,7 +71,7 @@ namespace rfb { // Wrappers to make these methods "safe" for VNCServerST. void writeFramebufferUpdateOrClose(); - void screenLayoutChangeOrClose(rdr::U16 reason); + void screenLayoutChangeOrClose(uint16_t reason); void setCursorOrClose(); void bellOrClose(); void setDesktopNameOrClose(const char *name); @@ -124,11 +124,11 @@ namespace rfb { virtual void clientInit(bool shared); virtual void setPixelFormat(const PixelFormat& pf); virtual void pointerEvent(const Point& pos, int buttonMask); - virtual void keyEvent(rdr::U32 keysym, rdr::U32 keycode, bool down); + virtual void keyEvent(uint32_t keysym, uint32_t keycode, bool down); virtual void framebufferUpdateRequest(const Rect& r, bool incremental); virtual void setDesktopSize(int fb_width, int fb_height, const ScreenSet& layout); - virtual void fence(rdr::U32 flags, unsigned len, const char data[]); + virtual void fence(uint32_t flags, unsigned len, const char data[]); virtual void enableContinuousUpdates(bool enable, int x, int y, int w, int h); virtual void handleClipboardRequest(); @@ -158,7 +158,7 @@ namespace rfb { void writeDataUpdate(); void writeLosslessRefresh(); - void screenLayoutChange(rdr::U16 reason); + void screenLayoutChange(uint16_t reason); void setCursor(); void setCursorPos(); void setDesktopName(const char *name); @@ -172,7 +172,7 @@ namespace rfb { bool inProcessMessages; bool pendingSyncFence, syncFence; - rdr::U32 fenceFlags; + uint32_t fenceFlags; unsigned fenceDataLen; char *fenceData; @@ -189,7 +189,7 @@ namespace rfb { Region cuRegion; EncodeManager encodeManager; - std::map pressedKeys; + std::map pressedKeys; Timer idleTimer; -- cgit v1.2.3