From: george82 Date: Mon, 4 Dec 2006 15:49:41 +0000 (+0000) Subject: Fixed the bug with wrong weight table for y coords. X-Git-Tag: v0.0.90~384^2~183 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b09756b497cc64fdc69d7dafe9087e03d904bd6f;p=tigervnc.git 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 639dcd9d..2722c0dd 100644 --- a/common/rfb/ScaledPixelBuffer.cxx +++ b/common/rfb/ScaledPixelBuffer.cxx @@ -122,7 +122,7 @@ void ScaledPixelBuffer::scaleRect(const Rect& rect) { 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;