*
* Copyright 1995-2002 Bernd Schmidt
* Copyright 1995 Alessandro Bissacco
-* Copyright 2000-2021 Toni Wilen
+* Copyright 2000-2023 Toni Wilen
*/
#include "sysconfig.h"
}
}
- if (maxvpos_display_vsync < 0) {
+ if (maxvpos_display_vsync <= 0) {
maxvpos_display_vsync = 0;
}
if (maxvpos_display_vsync >= vsstrt + 3) {
maxvpos_display_vsync = vsstrt + 3;
}
- if (maxvpos_display_vsync < 0) {
- maxvpos_display_vsync = 0;
- }
if (minfirstline < vsync_startline) {
minfirstline = vsync_startline;
}
if (firstblankedline < maxvpos / 2 && maxvpos_display_vsync > firstblankedline) {
maxvpos_display_vsync = firstblankedline;
} else if (firstblankedline <= maxvpos) {
- maxvpos_display_vsync = 0;
+ maxvpos_display_vsync = 1;
}
}
}
+ if (maxvpos_display_vsync <= 0) {
+ maxvpos_display_vsync = 1;
+ }
+
if (maxvpos_nom >= MAXVPOS) {
maxvpos_nom = MAXVPOS;
}