Small code improvements.
Added the new property scale to the rfb::ScaledPixelBuffer class.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@511 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/ScaledPixelBuffer.h b/rfb/ScaledPixelBuffer.h
index 8342a58..4f652b0 100644
--- a/rfb/ScaledPixelBuffer.h
+++ b/rfb/ScaledPixelBuffer.h
@@ -39,7 +39,7 @@
int width() const { return scaled_width; }
int height() const { return scaled_height; }
int area() const { return scaled_width * scaled_height; }
- int scale() const { return (int)(scale_ratio * 100); }
+ int getScale() const { return scale; }
// Get rectangle encompassing this buffer
// Top-left of rectangle is either at (0,0), or the specified point.
@@ -80,6 +80,7 @@
int scaled_width;
int scaled_height;
int bpp;
+ int scale;
double scale_ratio;
U8 **src_data;
U8 *scaled_data;