diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-06-07 21:48:54 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-06-07 21:54:20 +0300 |
commit | e243a5b462408891c401f88bb3af3a661697f8f4 (patch) | |
tree | 7846b4090c75f48e382d10673a698483f956b5dc /android | |
parent | 323f137631da53d4fbb057c1a3847c6b8aa69ab2 (diff) |
Verify that we do get the RGBX format DIB we expect
Change-Id: I9f44547fbc5e13daa297720dfd814d2192114125
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java | 11 |
1 files changed, 9 insertions, 2 deletions
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); |