mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-22 20:30:22 +00:00
Eliminate flicker when main menu showing by continuing to render
This commit is contained in:
parent
d298601bbe
commit
bbf10565a8
@ -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) {
|
||||
if (nativePaused) {
|
||||
return;
|
||||
if (!nativePaused) {
|
||||
c_keys_handle_input(-1, 0, 0);
|
||||
}
|
||||
c_keys_handle_input(-1, 0, 0);
|
||||
|
||||
#if FPS_LOG
|
||||
static uint32_t prevCount = 0;
|
||||
@ -147,7 +146,9 @@ void Java_org_deadc0de_apple2ix_Apple2Activity_nativeRender(JNIEnv *env, jobject
|
||||
#endif
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user