]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed the small mistake - set the scale parameter in
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 28 Oct 2007 08:35:08 +0000 (08:35 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 28 Oct 2007 08:35:08 +0000 (08:35 +0000)
rfb::ScaledPixelBuffer class constructor.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2362 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/ScaledPixelBuffer.cxx

index c30e93de89e5b155b7230609315d2c3fce6b8b91..b7b3f3949869302572f50f1471367b910b85d010 100644 (file)
@@ -29,8 +29,8 @@ using namespace rdr;
 using namespace rfb;
 
 ScaledPixelBuffer::ScaledPixelBuffer(U8 **src_data_, int src_width_,
-                                     int src_height_, int scale, PixelFormat pf_)
-  : scale(100), scale_ratio_x(1), scale_ratio_y(1), scaleFilterID(scaleFilterBicubic),
+                                     int src_height_, int scale_, PixelFormat pf_)
+  : scale(scale_), scale_ratio_x(1), scale_ratio_y(1), scaleFilterID(scaleFilterBicubic),
     xWeightTabs(0), yWeightTabs(0), scaled_data(0) {
 
   setSourceBuffer(src_data_, src_width_, src_height_);