From e243a5b462408891c401f88bb3af3a661697f8f4 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 7 Jun 2012 21:48:54 +0300 Subject: Verify that we do get the RGBX format DIB we expect Change-Id: I9f44547fbc5e13daa297720dfd814d2192114125 --- .../src/org/libreoffice/android/examples/DocumentLoader.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'android/experimental') diff --git a/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java b/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java index 4f027ecf7c1a..91af73145788 100644 --- a/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java +++ b/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java @@ -188,8 +188,8 @@ public class DocumentLoader Bootstrap.dlopen("libswdlo.so"); Bootstrap.dlopen("libswlo.so"); - // Log.i(TAG, "Sleeping NOW"); - // Thread.sleep(20000); + Log.i(TAG, "Sleeping NOW"); + Thread.sleep(20000); XComponentContext xContext = null; @@ -311,6 +311,13 @@ public class DocumentLoader return; } + if (imagebb.getInt(0x36) != 0x000000ff | + imagebb.getInt(0x3a) != 0x0000ff00 || + imagebb.getInt(0x3e) != 0x00ff0000) { + Log.wtf(TAG, "getDIB() didn't return DIB in RGBX format"); + return; + } + int offset = imagebb.getInt(0x0a); int width = imagebb.getInt(0x12); int height = imagebb.getInt(0x16); -- cgit