From: george82 Date: Mon, 11 Sep 2006 06:37:50 +0000 (+0000) Subject: Fixed the mistake int ScaledPixelBuffer::getScale(). X-Git-Tag: v0.0.90~384^2~224 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e297baffa7ac255ce54cca937a1cd6d02e481044;p=tigervnc.git Fixed the mistake int ScaledPixelBuffer::getScale(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@659 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- 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