dhewg
7157454e9b
ANDROID: Implement surface resizes
...
Split surface code into helper functions to avoid code duplication, and
distinguish between screen resizes and surface recreation. The former
happens when toggling the softkeyb, where we just have to reset the
viewport. Fixes garbled textures in those cases.
2011-03-03 21:29:15 +01:00
dhewg
2d4a64d184
ANDROID: Properly release texture resources
...
When calling glDeleteTextures() we need a valid surface.
2011-03-02 23:18:36 +01:00
dhewg
ccfe427eb5
ANDROID: Check for a surface in updateScreen()
2011-03-02 23:18:35 +01:00
dhewg
82a9beff2b
ANDROID: Move swapBuffers to the native side
2011-03-02 23:18:34 +01:00
dhewg
bd7e3e9bb2
ANDROID: cleanup
2011-03-02 23:18:34 +01:00
dhewg
2333a32697
ANDROID: Untangle JNI interweaving
...
- make the startup sequence more linear
- use SurfaceHolder events
- get rid of the surface lock
- remove unnecessary JNI calls
- make the ScummVM class implement Runnable
- cleanup
2011-03-02 23:18:34 +01:00
dhewg
6b1c575d1d
ANDROID: Remove another weird workaround
2011-02-27 09:04:31 +01:00
dhewg
e06b7431e8
ANDROID: Remove weird workaround in clearScreen()
...
This resulted in flickering all over the GUI
2011-02-25 00:10:42 +01:00
dhewg
a636d41ca8
ANDROID: Check thread origin when debugging GL
2011-02-24 23:18:34 +01:00
dhewg
d8acbc0311
ANDROID: Deuglify overlay gfx
...
Use the native surface resolution of the device if its not too big.
If it is, use a clean scale factor of 2 to prevent eyecancer.
2011-02-24 23:18:33 +01:00
dhewg
53b5808d4f
ANDROID: Move rest of everything JNI
2011-02-24 23:18:32 +01:00
dhewg
f80d993860
ANDROID: Wrap JNI code in a class
2011-02-24 23:18:32 +01:00
dhewg
c4706733d4
ANDROID: Move the global back reference to jni.cpp
2011-02-24 23:18:32 +01:00
dhewg
257913676d
ANDROID: Split code into multiple files
...
And get rid of unnecessary JNI calls to get a pointer to g_system
2011-02-24 23:18:31 +01:00