mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-07-04 07:29:29 +00:00
Quick fix for #341 (alignment of NTSC Monitor/TV video modes)
This commit is contained in:
parent
9d9489f5c4
commit
63789e525a
|
@ -1215,12 +1215,18 @@ void VideoRefreshScreen ( int bVideoModeFlags, bool bRedrawWholeScreen /* =false
|
||||||
int xSrc = BORDER_W;
|
int xSrc = BORDER_W;
|
||||||
int ySrc = BORDER_H;
|
int ySrc = BORDER_H;
|
||||||
|
|
||||||
|
#if 1 // TC: Hacky-fix for GH#341 - better to draw to the correct position in the framebuffer to start with! (in NTSC.cpp)
|
||||||
if (g_eVideoType == VT_MONO_TV || g_eVideoType == VT_COLOR_TV)
|
if (g_eVideoType == VT_MONO_TV || g_eVideoType == VT_COLOR_TV)
|
||||||
{
|
{
|
||||||
// Adjust the src locations for the NTSC video modes
|
// Adjust the src locations for the NTSC video modes
|
||||||
xSrc += 2;
|
xSrc += 2;
|
||||||
ySrc -= 1;
|
|
||||||
}
|
}
|
||||||
|
else if (g_eVideoType == VT_COLOR_MONITOR)
|
||||||
|
{
|
||||||
|
if ((g_uVideoMode & VF_TEXT) == 0)
|
||||||
|
xSrc += 2;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int xdest = GetFullScreenOffsetX();
|
int xdest = GetFullScreenOffsetX();
|
||||||
int ydest = GetFullScreenOffsetY();
|
int ydest = GetFullScreenOffsetY();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user