Fix typo from last commit, black is not 00000000!
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 1 Apr 2010 23:44:43 +0000 (23:44 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 1 Apr 2010 23:44:43 +0000 (23:44 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@1270 59b500cc-1b3d-0410-9834-0bbf25fbcc57

android/src/com/google/zxing/client/android/encode/QRCodeEncoder.java

index de54e60..de6b904 100755 (executable)
@@ -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;
           }
         }