diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2006-09-11 06:37:50 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2006-09-11 06:37:50 +0000 |
commit | e297baffa7ac255ce54cca937a1cd6d02e481044 (patch) | |
tree | 98d2a6a61750b535c24b6b039d68b0a812226683 /common | |
parent | 03ad683b85236cd7d144a491ebb7efdde5224f41 (diff) | |
download | tigervnc-e297baffa7ac255ce54cca937a1cd6d02e481044.tar.gz tigervnc-e297baffa7ac255ce54cca937a1cd6d02e481044.zip |
Fixed the mistake int ScaledPixelBuffer::getScale().
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@659 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r-- | common/rfb/ScaledPixelBuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/ScaledPixelBuffer.h b/common/rfb/ScaledPixelBuffer.h index 7ac31870..710e5435 100644 --- a/common/rfb/ScaledPixelBuffer.h +++ b/common/rfb/ScaledPixelBuffer.h @@ -48,7 +48,7 @@ namespace rfb { int getSrcWidth() const { return src_width; } int getSrcHeight() const { return src_height; } int area() const { return scaled_width * scaled_height; } - int getScale() const { return int(scale_ratio + 0.5); } + int getScale() const { return int(scale_ratio * 100 + 0.5); } double getScaleRatio() const { return scale_ratio; } // Get rectangle encompassing this buffer |