Force Voodoo blit

Certain applications using the Voodoo adapter stop blitting
when there's no activity (e.g mouse movement, animation).
This results in a black screen when events like window/full screen
transitions take place. Usually this can be fixed by
moving the mouse or with keyboard inout. This change forces
a blit to refresh the screen.

In addition, added critical sections since they are lighter
than mutexes.
This commit is contained in:
luisjoseromero
2021-01-14 00:19:47 +00:00
parent efe7fc4043
commit eca2625093
5 changed files with 115 additions and 2 deletions

View File

@@ -489,6 +489,10 @@ typedef struct voodoo_t
uint64_t time;
int render_time[4];
int force_blit_count;
int can_blit;
lightmutex_t* force_blit_mutex;
int use_recompiler;
void *codegen_data;