Fix a few Coverity issues (#470)

This commit is contained in:
tomcw
2023-02-05 21:53:51 +00:00
parent 5dd14256c2
commit b0220169b8
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -3251,8 +3251,9 @@ static void DrawVideoScannerValue(int line, int vert, int horz, bool isVisible)
//===========================================================================
static void DrawVideoScannerInfo(int line)
{
uint16_t v, h;
NTSC_GetVideoVertHorzForDebugger(v, h); // update video scanner's vert/horz position - needed for when in fullspeed (GH#1164)
uint16_t vert, horz;
NTSC_GetVideoVertHorzForDebugger(vert, horz); // update video scanner's vert/horz position - needed for when in fullspeed (GH#1164)
int v = vert, h = horz; // use int, since 'h - 13' can go -ve
if (g_videoScannerDisplayInfo.isHorzReal)
{