Browse Source

Switch to unsigned parameters for ExtendedDesktopSize handler

The constants used here are unsigned so it makes more sense that
the parameters are as well.
tags/v1.4.90
Pierre Ossman 9 years ago
parent
commit
28c1d54937
4 changed files with 7 additions and 7 deletions
  1. 2
    2
      common/rfb/CMsgHandler.cxx
  2. 1
    1
      common/rfb/CMsgHandler.h
  3. 2
    2
      vncviewer/CConn.cxx
  4. 2
    2
      vncviewer/CConn.h

+ 2
- 2
common/rfb/CMsgHandler.cxx View File

@@ -38,13 +38,13 @@ void CMsgHandler::setDesktopSize(int width, int height)
cp.height = height;
}

void CMsgHandler::setExtendedDesktopSize(int reason, int result,
void CMsgHandler::setExtendedDesktopSize(unsigned reason, unsigned result,
int width, int height,
const ScreenSet& layout)
{
cp.supportsSetDesktopSize = true;

if ((reason == (signed)reasonClient) && (result != (signed)resultSuccess))
if ((reason == reasonClient) && (result != resultSuccess))
return;

if (!layout.validate(width, height))

+ 1
- 1
common/rfb/CMsgHandler.h View File

@@ -46,7 +46,7 @@ namespace rfb {
// methods to set the members of cp appropriately.

virtual void setDesktopSize(int w, int h);
virtual void setExtendedDesktopSize(int reason, int result,
virtual void setExtendedDesktopSize(unsigned reason, unsigned result,
int w, int h,
const ScreenSet& layout);
virtual void setCursor(int width, int height, const Point& hotspot,

+ 2
- 2
vncviewer/CConn.cxx View File

@@ -313,8 +313,8 @@ void CConn::setDesktopSize(int w, int h)
}

// setExtendedDesktopSize() is a more advanced version of setDesktopSize()
void CConn::setExtendedDesktopSize(int reason, int result, int w, int h,
const rfb::ScreenSet& layout)
void CConn::setExtendedDesktopSize(unsigned reason, unsigned result,
int w, int h, const rfb::ScreenSet& layout)
{
CConnection::setExtendedDesktopSize(reason, result, w, h, layout);


+ 2
- 2
vncviewer/CConn.h View File

@@ -51,8 +51,8 @@ public:
void serverInit();

void setDesktopSize(int w, int h);
void setExtendedDesktopSize(int reason, int result, int w, int h,
const rfb::ScreenSet& layout);
void setExtendedDesktopSize(unsigned reason, unsigned result,
int w, int h, const rfb::ScreenSet& layout);

void setName(const char* name);


Loading…
Cancel
Save