Fix it in svga_doblit() as well.

This commit is contained in:
OBattler
2025-06-06 20:09:36 +02:00
parent a1a9407629
commit c6e374158b

View File

@@ -1997,9 +1997,15 @@ svga_doblit(int wx, int wy, svga_t *svga)
y_add = enable_overscan ? svga->monitor->mon_overscan_y : 0;
x_add = enable_overscan ? svga->monitor->mon_overscan_x : 0;
#ifdef USE_OLD_CALCULATION
y_start = enable_overscan ? 0 : (svga->monitor->mon_overscan_y >> 1);
x_start = enable_overscan ? 0 : (svga->monitor->mon_overscan_x >> 1);
bottom = (svga->monitor->mon_overscan_y >> 1);
#else
y_start = enable_overscan ? 0 : svga->y_add;
x_start = enable_overscan ? 0 : svga->left_overscan;
bottom = svga->monitor->mon_overscan_y - svga->y_add;
#endif
if (svga->vertical_linedbl) {
y_add <<= 1;