From e297baffa7ac255ce54cca937a1cd6d02e481044 Mon Sep 17 00:00:00 2001 From: george82 Date: Mon, 11 Sep 2006 06:37:50 +0000 Subject: [PATCH] Fixed the mistake int ScaledPixelBuffer::getScale(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@659 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/ScaledPixelBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5