X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=core%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fqrcode%2FQRCodeWriter.java;fp=core%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fqrcode%2FQRCodeWriter.java;h=0c59ed7cf9f2794cde1264394fd388a79a8bc069;hb=ac690c9dc8a71296c744cdb5899842525bd6ef59;hp=84ee4be1f9bc37bcb76aef23a619a58534f95ce1;hpb=6d1e5858c1e6231f4c5037e8687d99791a0cef12;p=zxing.git diff --git a/core/src/com/google/zxing/qrcode/QRCodeWriter.java b/core/src/com/google/zxing/qrcode/QRCodeWriter.java index 84ee4be1..0c59ed7c 100644 --- a/core/src/com/google/zxing/qrcode/QRCodeWriter.java +++ b/core/src/com/google/zxing/qrcode/QRCodeWriter.java @@ -75,8 +75,8 @@ public final class QRCodeWriter implements Writer { // 0 == black, 255 == white (i.e. an 8 bit greyscale bitmap). private static ByteMatrix renderResult(QRCode code, int width, int height) { ByteMatrix input = code.getMatrix(); - int inputWidth = input.width(); - int inputHeight = input.height(); + int inputWidth = input.getWidth(); + int inputHeight = input.getHeight(); int qrWidth = inputWidth + (QUIET_ZONE_SIZE << 1); int qrHeight = inputHeight + (QUIET_ZONE_SIZE << 1); int outputWidth = Math.max(width, qrWidth);