From: srowen Date: Fri, 5 Feb 2010 13:49:21 +0000 (+0000) Subject: Added rendering fix from beyonddeath X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=66affdb887502daf1213db55a0f0b348c5a74593;hp=063828952cd54b2078dbe9933777df62e0833cdd;p=zxing.git Added rendering fix from beyonddeath git-svn-id: http://zxing.googlecode.com/svn/trunk@1199 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- diff --git a/csharp/qrcode/QRCodeWriter.cs b/csharp/qrcode/QRCodeWriter.cs index 9b684cf9..88075371 100755 --- a/csharp/qrcode/QRCodeWriter.cs +++ b/csharp/qrcode/QRCodeWriter.cs @@ -126,10 +126,17 @@ namespace com.google.zxing.qrcode // 3. Write the white lines at the bottom int offset2 = topPadding + (inputHeight * multiple); - for (int y = offset2; y < outputHeight; y++) - { + for (int y = offset2; y < outputHeight; y++) { setRowColor(outputArray[y], unchecked((sbyte) 255)); } + + // Added per beyonddeath + for (int x = 0; x < outputHeight; x++) { + for (int y = 0; y < outputWidth; y++) { + output.set(y, x, outputArray[x][y]); + } + } + return output; } @@ -140,4 +147,4 @@ namespace com.google.zxing.qrcode } } -} \ No newline at end of file +}