Browse Source

Fix compiler warning in Visual C++


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4638 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.1.90
DRC 12 years ago
parent
commit
e3ffcf7337
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      common/rfb/TightEncoder.cxx

+ 3
- 3
common/rfb/TightEncoder.cxx View File

@@ -292,8 +292,8 @@ bool TightEncoder::writeRect(const Rect& _r, TransImageGetter* _ig,
Rect r = _r;
int x = r.tl.x;
int y = r.tl.y;
unsigned int w = r.width();
unsigned int h = r.height();
int w = r.width();
int h = r.height();

// Encode small rects as is.
if (!cp->supportsLastRect || w * h < TIGHT_MIN_SPLIT_RECT_SIZE) {
@@ -303,7 +303,7 @@ bool TightEncoder::writeRect(const Rect& _r, TransImageGetter* _ig,

// Split big rects into separately encoded subrects.
Rect sr, bestr;
unsigned int dx, dy, dw, dh;
int dx, dy, dw, dh;
rdr::U32 colorValue;
int maxRectSize = pconf->maxRectSize;
int maxRectWidth = pconf->maxRectWidth;

Loading…
Cancel
Save