75 Commits

Author SHA1 Message Date
Themaister
0b4cf2d053 Update license headers to 2013. 2013-01-01 01:41:15 +01:00
Themaister
8a58858d84 Refactor out save stating and reentrancy.
It's not really needed.
2012-12-30 18:25:49 +01:00
Themaister
35e17e5017 Fix CPU hogging issue on Android when paused. 2012-12-30 16:54:16 +01:00
Themaister
9fbd888566 Handle orientation without explict calls.
Appears to fix some kind of "race condition" in EGL.
2012-12-28 00:12:18 +01:00
Themaister
71505ccb87 Improve resize handling on Android. 2012-12-27 23:30:27 +01:00
twinaphex
7a9293b8c9 (Android) Remove gfx_ctx_get_aspect_ratio as well 2012-12-26 07:56:29 +01:00
twinaphex
0c3f9a854a (Android) Remove HAVE_RMENU code from Android EGL context file -
we aren't going to use RMenu after all
2012-12-26 07:20:31 +01:00
notaz
b1e8c84f55 (Android) Enable and fix warnings. 2012-12-26 03:11:33 +02:00
notaz
fff846d579 (Android) Remove unused variables.
width/height is read by gfx_ctx_get_video_size() later.
2012-12-26 03:11:33 +02:00
notaz
df2466c5ed (Android) Fix crash on orientation update. 2012-12-26 03:11:32 +02:00
notaz
bbc898400d (Android) Remove unneeded include.
Also fixes build on older NDK (r6b).
2012-12-26 03:11:32 +02:00
twinaphex
2ee5efc4a1 (Android) Orientation change now done in a stable way without freeing/
reiniting the video driver again
2012-12-24 20:17:16 +01:00
twinaphex
ae8c7b8d7f (Android) Orientation change works again - crashes after a finite
number of times changing orientation though
2012-12-24 19:06:28 +01:00
Themaister
5eb7432fff Add overlay rendering to GL.
This allows e.g. Android to render a keypad overlay for touch.
2012-12-19 13:26:11 +01:00
twinaphex
2e988a61d9 (Android) Same for Android - remove gfx_ctx_clear 2012-12-18 09:18:22 +01:00
twinaphex
74ae6ecf57 (Android) Better deinit - will now deinit RetroArch and save game
RAM if you forcibly stop RetroArch
2012-12-17 18:45:26 +01:00
twinaphex
cd1ddbb9c7 (Android) Better restore state functionality 2012-12-17 17:58:08 +01:00
twinaphex
dca1175854 (Android) Add performance counters for input poll 2012-12-16 17:13:49 +01:00
twinaphex
3c5b7ba08e (Android) Call ALooper_pollOnce for command event queue once per frame -
seems to be enough
2012-12-16 05:52:39 +01:00
twinaphex
cf539edf91 (Android) android_input_poll now only reads and processes input
events - check_window polls for system messages once
2012-12-16 02:04:13 +01:00
twinaphex
dacab094f0 (RMenu) menu_loop renamed into rmenu_iterate - iterates menu code for one frame 2012-12-15 16:40:02 +01:00
twinaphex
799a9c35fb gfx_common.c - make gfx_get_fps into the main public function -
and remove the two public wrapper functions
2012-12-15 07:03:33 +01:00
twinaphex
d2683cc02a (Android) Fix build 2012-12-15 02:59:35 +01:00
twinaphex
dbb962e946 Streamline frame_count usage
(Android/Griffin) Fix build
2012-12-14 20:33:36 +01:00
twinaphex
e1918b2ba6 (Android) Rename g_android.input_state to g_extern.lifecycle_state
- intend to use this for RMenu as well
2012-12-14 02:06:14 +01:00
twinaphex
66180308e4 (Android) Remove android_get_sdk_version and change RMenu
mountpoints
2012-12-14 01:44:59 +01:00
twinaphex
707bcd483f (Android) Some patches for RMenu compatibility 2012-12-14 01:29:01 +01:00
twinaphex
5421fb8269 (Android) PERF_TEST no longer default 2012-12-13 23:09:28 +01:00
twinaphex
44b2343a9b (Android) Move back to old reinit video context - meancoot - test
if this works for you
2012-12-05 19:53:57 +01:00
twinaphex
aab0ed8fce (Android) Refactor check_window - store AConfiguration_getOrientation
return value in local variable and reuse this value from there
2012-12-05 06:43:00 +01:00
twinaphex
f81ee3be30 (Android) Refactor context restore and video orientation change
code  - context restore only needs to restore video and not all
drivers
2012-12-05 06:31:24 +01:00
twinaphex
0dce6a6db6 (Android) Move video reinit code to EGL check_window function -
now properly resizes video after orientation change and restores
video context after minimizing and restoring
2012-12-05 06:17:45 +01:00
Themaister
28bb46483c Drop video_force_16bit.
This option is silly now.
2012-11-20 23:23:18 +01:00
twinaphex
de4648a127 (Android) Possible context fix 2012-11-09 22:33:54 +01:00
twinaphex
48b0bc7f2d (Android) Use eglGetError 2012-11-09 21:52:07 +01:00
twinaphex
acb4f63cfb (Android) Build fix 2012-11-09 21:20:55 +01:00
twinaphex
eb5bb55754 (Android) Need to know return val 2012-11-09 20:47:17 +01:00
twinaphex
8ba727ab30 (Android) Build fix 2012-11-09 17:05:03 +01:00
twinaphex
0b6bbe04a3 (Android) Add log error messages for Android EGL context for debugging 2012-11-09 09:43:16 +01:00
twinaphex
610b54e3b2 (Android) Some initial context restoring in EGL context 2012-11-03 19:23:52 +01:00
twinaphex
0dbcdb087d (Android) Rewrite of input code 2012-11-03 00:31:05 +01:00
twinaphex
02f81a38c2 (Android) Create input_state for Android app - can now signal that a window
was created, or that we want to shutdown
2012-11-02 22:27:22 +01:00
twinaphex
3837a503b7 (Android) Reimplement native glue code 2012-11-01 05:48:46 +01:00
twinaphex
4d99d93df0 (Android) remove Android save state for now - unused and will
probably reimplement it later
2012-10-31 18:10:38 +01:00
twinaphex
cbcffbb5cf (Android) Get rid of unused width/height/animated in g_android struct 2012-10-31 17:12:45 +01:00
twinaphex
b204b55386 (Android) Remove unnecessary animating conditional block in gfx_ctx_check_window 2012-10-30 06:36:38 +01:00
twinaphex
1ff6175bd2 (Android) Move polling for events into Android input driver instead
of EGL context check_window function
2012-10-30 06:20:49 +01:00
twinaphex
cfdfcd4b8e (Android) Speed optimization 2012-10-25 20:58:05 +02:00
twinaphex
3342bd4ec6 (Android) Teardown more or less works correctly now - have to do
exit() at the end because of the way dynamic libraries stay in
memory and can't be purged - so static variables retain their
state (ie. previous values from the previous session) - see

https://groups.google.com/forum/?fromgroups=#!topic/android-ndk/XDO-Rar3ptY
http://comments.gmane.org/gmane.comp.handhelds.android.ndk/11500
2012-10-21 19:56:36 +02:00
twinaphex
702f99b80e (Android) Some teardown refinements 2012-10-21 17:38:47 +02:00