aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/jni.h
diff options
context:
space:
mode:
authordhewg2011-03-02 19:48:29 +0100
committerdhewg2011-03-02 23:18:35 +0100
commitccfe427eb542235070e8576b4cc47217d92046fd (patch)
treee5dc74d43a16d083880b8be1732b826a8e303bf0 /backends/platform/android/jni.h
parentd6e838e1b38a568869ffd655a9bebd225593ffad (diff)
downloadscummvm-rg350-ccfe427eb542235070e8576b4cc47217d92046fd.tar.gz
scummvm-rg350-ccfe427eb542235070e8576b4cc47217d92046fd.tar.bz2
scummvm-rg350-ccfe427eb542235070e8576b4cc47217d92046fd.zip
ANDROID: Check for a surface in updateScreen()
Diffstat (limited to 'backends/platform/android/jni.h')
-rw-r--r--backends/platform/android/jni.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/android/jni.h b/backends/platform/android/jni.h
index 2a1405dfcc..d2bc89e3d1 100644
--- a/backends/platform/android/jni.h
+++ b/backends/platform/android/jni.h
@@ -60,6 +60,7 @@ public:
static void showVirtualKeyboard(bool enable);
static void addSysArchivesToSearchSet(Common::SearchSet &s, int priority);
+ static inline bool haveSurface();
static inline bool swapBuffers();
static bool initSurface();
static void deinitSurface();
@@ -130,6 +131,10 @@ private:
static void enableZoning(JNIEnv *env, jobject self, jboolean enable);
};
+inline bool JNI::haveSurface() {
+ return _jobj_egl_surface != 0;
+}
+
inline bool JNI::swapBuffers() {
JNIEnv *env = JNI::getEnv();