mirror of
https://github.com/Vita3K/Vita3K-Android.git
synced 2024-12-11 15:14:44 +00:00
display: Always refresh screen if a dialog is being shown
This commit is contained in:
parent
26930943a6
commit
e9969a11ce
@ -8,4 +8,4 @@ add_library(
|
||||
|
||||
target_include_directories(display PUBLIC include)
|
||||
target_link_libraries(display PUBLIC emuenv kernel)
|
||||
target_link_libraries(display PRIVATE kernel touch renderer)
|
||||
target_link_libraries(display PRIVATE kernel touch renderer dialog)
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
#include <display/functions.h>
|
||||
|
||||
#include <dialog/state.h>
|
||||
#include <display/state.h>
|
||||
#include <emuenv/state.h>
|
||||
#include <kernel/state.h>
|
||||
@ -41,13 +42,14 @@ static void vblank_sync_thread(EmuEnvState &emuenv) {
|
||||
{
|
||||
const std::lock_guard<std::mutex> guard_info(display.display_info_mutex);
|
||||
display.vblank_count++;
|
||||
|
||||
// register framebuf change made by _sceDisplaySetFrameBuf
|
||||
if (display.has_next_frame) {
|
||||
if (display.has_next_frame)
|
||||
display.has_next_frame = false;
|
||||
// do not set it here as it as already been set in _sceDisplaySetFrameBuf
|
||||
// display.frame = display.next_frame;
|
||||
// emuenv.renderer->should_display = true;
|
||||
}
|
||||
|
||||
// in this case, even though no new game frames are being rendered, we still need to update the screen
|
||||
if (emuenv.common_dialog.status == SCE_COMMON_DIALOG_STATUS_RUNNING)
|
||||
emuenv.renderer->should_display = true;
|
||||
}
|
||||
|
||||
// maybe we should also use a mutex for this part, but it shouldn't be an issue
|
||||
|
Loading…
Reference in New Issue
Block a user