summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/ProofActivity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/ProofActivity.java b/platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/ProofActivity.java
index 04ba3089..65b79c19 100644
--- a/platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/ProofActivity.java
+++ b/platform/android/example/mupdf/src/main/java/com/artifex/mupdf/android/ProofActivity.java
@@ -289,10 +289,10 @@ public class ProofActivity extends Activity implements View.OnClickListener, Doc
String name = sep.name;
// transform to a color that can be used to colorize icons
- int alpha = (sep.rgba >> 24) & 0xFF;
- int red = (sep.rgba >> 16) & 0xFF;
- int green = (sep.rgba >> 8 ) & 0xFF;
- int blue = (sep.rgba >> 0 ) & 0xFF;
+ int alpha = (sep.bgra >> 24) & 0xFF;
+ int red = (sep.bgra >> 16) & 0xFF;
+ int green = (sep.bgra >> 8 ) & 0xFF;
+ int blue = (sep.bgra >> 0 ) & 0xFF;
int color = (alpha << 24) | (red << 16) | (green << 8) | (blue << 0);
mColorAdapter.add(new ChooseColorItem(sep.name, color, true, sep));