From 17d7b16be66178fc03cba8d0b686c815a672cefa Mon Sep 17 00:00:00 2001 From: stephena Date: Sun, 6 May 2012 18:33:29 +0000 Subject: [PATCH] Updated VS 2010 project files for recent class additions, and fixed some C99/C++ issues. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2458 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- src/common/tv_filters/atari_ntsc.c | 5 +++-- src/common/tv_filters/atari_ntsc.h | 8 ++++---- src/win32/Stella.vcxproj | 3 +++ src/win32/Stella.vcxproj.filters | 9 +++++++++ 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/common/tv_filters/atari_ntsc.c b/src/common/tv_filters/atari_ntsc.c index 625cfb1fa..24ef22db8 100644 --- a/src/common/tv_filters/atari_ntsc.c +++ b/src/common/tv_filters/atari_ntsc.c @@ -72,14 +72,15 @@ static void correct_errors( atari_ntsc_rgb_t color, atari_ntsc_rgb_t* out ) void atari_ntsc_init( atari_ntsc_t* ntsc, atari_ntsc_setup_t const* setup ) { - int entry = 0; + atari_ntsc_in_t* palette; + int entry; init_t impl; if ( !setup ) setup = &atari_ntsc_composite; init( &impl, setup ); // Palette stores R/G/B data for 'atari_ntsc_palette_size' entries - atari_ntsc_in_t* palette = ( atari_ntsc_in_t*) setup->palette; + palette = (atari_ntsc_in_t*) setup->palette; // Burst-phase (TODO - how is this actually used?) // float start_angle = - ((213.0f) * M_PI / 180.0f) - setup->burst_phase * M_PI; diff --git a/src/common/tv_filters/atari_ntsc.h b/src/common/tv_filters/atari_ntsc.h index 800f11bdb..11aa15cbd 100644 --- a/src/common/tv_filters/atari_ntsc.h +++ b/src/common/tv_filters/atari_ntsc.h @@ -22,14 +22,14 @@ #ifndef ATARI_NTSC_H #define ATARI_NTSC_H -#ifdef __cplusplus - extern "C" { -#endif - /* Type of input and output pixel values. */ typedef unsigned char atari_ntsc_in_t; typedef unsigned short atari_ntsc_out_t; +#ifdef __cplusplus + extern "C" { +#endif + /* Each raw pixel input value is passed through this. You might want to mask the pixel index if you use the high bits as flags, etc. */ #define ATARI_NTSC_ADJ_IN( in ) in diff --git a/src/win32/Stella.vcxproj b/src/win32/Stella.vcxproj index 582de4426..7067aa677 100644 --- a/src/win32/Stella.vcxproj +++ b/src/win32/Stella.vcxproj @@ -233,6 +233,7 @@ SDLmain.lib + @@ -440,6 +441,8 @@ SDLmain.lib + + diff --git a/src/win32/Stella.vcxproj.filters b/src/win32/Stella.vcxproj.filters index b005b4e17..a45d0186a 100644 --- a/src/win32/Stella.vcxproj.filters +++ b/src/win32/Stella.vcxproj.filters @@ -630,6 +630,9 @@ Source Files + + Source Files\emucore + @@ -1250,6 +1253,12 @@ Header Files + + Header Files\emucore + + + Header Files\emucore +