Eliminate flicker when main menu showing by continuing to render

This commit is contained in:
Aaron Culliney 2015-04-07 22:48:33 -07:00
parent d298601bbe
commit bbf10565a8

View File

@ -124,10 +124,9 @@ void Java_org_deadc0de_apple2ix_Apple2Activity_nativeOnPause(JNIEnv *env, jobjec
} }
void Java_org_deadc0de_apple2ix_Apple2Activity_nativeRender(JNIEnv *env, jobject obj) { void Java_org_deadc0de_apple2ix_Apple2Activity_nativeRender(JNIEnv *env, jobject obj) {
if (nativePaused) { if (!nativePaused) {
return;
}
c_keys_handle_input(-1, 0, 0); c_keys_handle_input(-1, 0, 0);
}
#if FPS_LOG #if FPS_LOG
static uint32_t prevCount = 0; static uint32_t prevCount = 0;
@ -147,7 +146,9 @@ void Java_org_deadc0de_apple2ix_Apple2Activity_nativeRender(JNIEnv *env, jobject
#endif #endif
extern volatile bool _vid_dirty; extern volatile bool _vid_dirty;
_vid_dirty = true; if (!nativePaused) {
_vid_dirty = true;// HACK HACK HACK FIXME TODO : efficiency and battery life gains if we can fix this ...
}
video_backend->render(); video_backend->render();
} }