Fixed the bug with wrong weight table for y coords.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2175 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/ScaledPixelBuffer.cxx b/common/rfb/ScaledPixelBuffer.cxx
index 639dcd9..2722c0d 100644
--- a/common/rfb/ScaledPixelBuffer.cxx
+++ b/common/rfb/ScaledPixelBuffer.cxx
@@ -122,7 +122,7 @@
for (int y = changed_rect.tl.y; y < changed_rect.br.y; y++) {
ptr = &(*scaled_data)[(changed_rect.tl.x + y*scaled_width) * 4];
- yweight = xWeightTabs[y].weight;
+ yweight = yWeightTabs[y].weight;
for (int x = changed_rect.tl.x; x < changed_rect.br.x; x++) {
ywi = 0; red = 0; green = 0; blue = 0;