Skip to content

Commit

Permalink
Multimonitor visible monitor check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioni committed Apr 23, 2024
1 parent 3d69d9c commit c108288
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gfxboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ void video_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h)
struct rtggfxboard *gb = &rtggfxboards[i];
if (gb->pcemdev && gb->pcemobject) {
pcem_flush(gb, i);
if (rtg_visible[gb->monitor_id] >= 0 && gb->monswitch_delay == 0 && gb->monswitch_current == gb->monswitch_new) {
if (rtg_visible[gb->monitor_id] == i && gb->monswitch_delay == 0 && gb->monswitch_current == gb->monswitch_new) {
if (gb->gfxboard_surface == NULL) {
gb->gfxboard_surface = gfx_lock_picasso(gb->monitor_id, false);
}
Expand Down Expand Up @@ -1703,6 +1703,8 @@ void gfxboard_vsync_handler(bool full_redraw_required, bool redraw_required)
}
}

gfxboard_unlock(gb);

if (gb->monswitch_keep_trying) {
vga_update_size_ext(gb);
if (gb->vga_width > 16 && gb->vga_height > 16) {
Expand Down

0 comments on commit c108288

Please sign in to comment.