This commit is contained in:
twinaphex
2015-08-28 12:47:18 +02:00
parent 24abc2ccc9
commit 57f8a8af72

View File

@@ -4,10 +4,6 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#ifdef _MSC_VER
#define snprintf _snprintf
#endif
#include "libretro.h" #include "libretro.h"
#include "../../fceu.h" #include "../../fceu.h"
@@ -123,10 +119,8 @@ void FCEUD_SetPalette(unsigned char index, unsigned char r, unsigned char g, uns
#ifdef FRONTEND_SUPPORTS_RGB565 #ifdef FRONTEND_SUPPORTS_RGB565
retro_palette[index] = BUILD_PIXEL_RGB565(r >> 3, g >> 2, b >> 3); retro_palette[index] = BUILD_PIXEL_RGB565(r >> 3, g >> 2, b >> 3);
#else #else
r >>= RED_EXPAND; retro_palette[index] =
g >>= GREEN_EXPAND; ((r >> RED_EXPAND) << RED_SHIFT) | ((g >> GREEN_EXPAND) << GREEN_SHIFT) | ((b >> BLUE_EXPAND) << BLUE_SHIFT);
b >>= BLUE_EXPAND;
retro_palette[index] = (r << RED_SHIFT) | (g << GREEN_SHIFT) | (b << BLUE_SHIFT);
#endif #endif
} }
@@ -838,6 +832,8 @@ input_cheat:
FCEUI_AddCheat(name, a, v, c, type); FCEUI_AddCheat(name, a, v, c, type);
} }
extern uint32_t iNESGameCRC32;
bool retro_load_game(const struct retro_game_info *game) bool retro_load_game(const struct retro_game_info *game)
{ {
char* dir=NULL; char* dir=NULL;