mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Fix typo from last commit, black is not 00000000!
git-svn-id: https://zxing.googlecode.com/svn/trunk@1270 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
26a63fc183
commit
a7ed5f7b5c
|
@ -54,6 +54,7 @@ final class QRCodeEncoder {
|
|||
private static final String TAG = "QRCodeEncoder";
|
||||
|
||||
private static final int WHITE = 0xFFFFFFFF;
|
||||
private static final int BLACK = 0xFF000000;
|
||||
|
||||
private final Activity activity;
|
||||
private String contents;
|
||||
|
@ -338,9 +339,7 @@ final class QRCodeEncoder {
|
|||
for (int y = 0; y < height; y++) {
|
||||
int offset = y * width;
|
||||
for (int x = 0; x < width; x++) {
|
||||
if (!result.get(x, y)) {
|
||||
pixels[offset + x] = WHITE;
|
||||
}
|
||||
pixels[offset + x] = result.get(x, y) ? BLACK : WHITE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue