Force resizes on overscan parameter changes.
This commit is contained in:
@@ -628,6 +628,8 @@ svga_recalctimings(svga_t *svga)
|
|||||||
int hsyncstart;
|
int hsyncstart;
|
||||||
int hsyncend;
|
int hsyncend;
|
||||||
#endif
|
#endif
|
||||||
|
int old_monitor_overscan_x = svga->monitor->mon_overscan_x;
|
||||||
|
int old_monitor_overscan_y = svga->monitor->mon_overscan_y;
|
||||||
|
|
||||||
svga->vtotal = svga->crtc[6];
|
svga->vtotal = svga->crtc[6];
|
||||||
svga->dispend = svga->crtc[0x12];
|
svga->dispend = svga->crtc[0x12];
|
||||||
@@ -1009,6 +1011,9 @@ svga_recalctimings(svga_t *svga)
|
|||||||
svga->dpms_ui = 0;
|
svga->dpms_ui = 0;
|
||||||
ui_sb_set_text_w(NULL);
|
ui_sb_set_text_w(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (enable_overscan && (svga->monitor->mon_overscan_x != old_monitor_overscan_x || svga->monitor->mon_overscan_y != old_monitor_overscan_y))
|
||||||
|
video_force_resize_set_monitor(1, svga->monitor_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user