From 0a5165604ec53a70b4884321197b549ba7d5cc86 Mon Sep 17 00:00:00 2001 From: Michaelangel007 Date: Sun, 28 Dec 2014 10:11:40 -0800 Subject: [PATCH] Compile with Clang --- src/wsvideo.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/wsvideo.cpp b/src/wsvideo.cpp index 443595d..e931233 100644 --- a/src/wsvideo.cpp +++ b/src/wsvideo.cpp @@ -20,10 +20,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #include "StdAfx.h" #include "cs.h" #include "wsvideo.h" -#include -#include -#include -#include // uint8_t +//#include +//#include +//#include +//#include // uint8_t // Defines #define PI 3.1415926535898f @@ -269,7 +269,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // prototypes from Memory.h //unsigned char * MemGetAuxPtr (unsigned short); //unsigned char * MemGetMainPtr (unsigned short); - void init_chroma_phase_table(); + static void init_chroma_phase_table(); void updateColorPhase(); void updateVideoHorzEOL(); @@ -623,6 +623,7 @@ static void ntscColorSinglePixel (int compositeSignal) static void ntscColorDoublePixel (int compositeSignal) { +printf( "ntscColorDoublePixel() %d\n", compositeSignal ); DOUBLEPIXEL(compositeSignal, NTSCColor[g_nColorPhaseNTSC]); updateColorPhase(); } @@ -710,6 +711,7 @@ unsigned char wsVideoByte (unsigned long cycle) } #define VIDEO_DRAW_BITS() do { \ +printf( "VIDEO_DRAW_BITS: bt: %04X\n", bt );\ if (g_nColorBurstPixels < 2) \ { \ /* #1 of 7 */ \ @@ -1005,7 +1007,7 @@ void wsUpdateVideoDblHires (long ticks) void wsUpdateVideoHires (long ticks) { unsigned ad, bt; - +printf( "wsUpdateVideoHires( %d )\n", (int)ticks ); if (wsVideoMixed && g_nVideoClockVert >= VIDEO_SCANNER_Y_MIXED) { g_pFuncVideoText(ticks);