From c3fadd966ae2a65a683d6cc0b07a26c2980f6bbd Mon Sep 17 00:00:00 2001 From: João Silva Date: Sun, 12 Feb 2017 22:16:10 +0000 Subject: Fixed stupid mistake that broke some games. Other minor changes. --- source/snes9x.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'source/snes9x.h') diff --git a/source/snes9x.h b/source/snes9x.h index 9d7019c..9ae1c1c 100644 --- a/source/snes9x.h +++ b/source/snes9x.h @@ -15,27 +15,27 @@ #define ROM_NAME_LEN 23 #define STREAM FILE* -#define READ_STREAM(p,l,s) fread (p,1,l,s) -#define WRITE_STREAM(p,l,s) fwrite (p,1,l,s) -#define OPEN_STREAM(f,m) fopen (f,m) -#define REOPEN_STREAM(f,m) fdopen (f,m) -#define FIND_STREAM(f) ftell(f) -#define REVERT_STREAM(f,o,s) fseek(f,o,s) -#define CLOSE_STREAM(s) fclose (s) +#define READ_STREAM(p,l,s) fread(p,1,l,s) +#define WRITE_STREAM(p,l,s) fwrite(p,1,l,s) +#define OPEN_STREAM(f,m) fopen(f,m) +#define REOPEN_STREAM(f,m) fdopen(f,m) +#define FIND_STREAM(f) ftell(f) +#define REVERT_STREAM(f,o,s) fseek(f,o,s) +#define CLOSE_STREAM(s) fclose(s) /* SNES screen width and height */ -#define SNES_WIDTH 256 -#define SNES_HEIGHT 224 +#define SNES_WIDTH 256 +#define SNES_HEIGHT 224 #define SNES_HEIGHT_EXTENDED 239 -#define IMAGE_WIDTH (Settings.SupportHiRes ? SNES_WIDTH * 2 : SNES_WIDTH) -#define IMAGE_HEIGHT (Settings.SupportHiRes ? SNES_HEIGHT_EXTENDED * 2 : SNES_HEIGHT_EXTENDED) +#define IMAGE_WIDTH (Settings.SupportHiRes ? SNES_WIDTH * 2 : SNES_WIDTH) +#define IMAGE_HEIGHT (Settings.SupportHiRes ? SNES_HEIGHT_EXTENDED * 2 : SNES_HEIGHT_EXTENDED) #define SNES_MAX_NTSC_VCOUNTER 262 #define SNES_MAX_PAL_VCOUNTER 312 -#define SNES_HCOUNTER_MAX 342 -#define SPC700_TO_65C816_RATIO 2 -#define AUTO_FRAMERATE 200 +#define SNES_HCOUNTER_MAX 341 +#define SPC700_TO_65C816_RATIO 2 +#define AUTO_FRAMERATE 200 /* NTSC master clock signal 21.47727MHz * PPU: master clock / 4 -- cgit v1.2.3