diff --git a/src/gba/Globals.cpp b/src/gba/Globals.cpp index 925fd6fd..79f5308c 100644 --- a/src/gba/Globals.cpp +++ b/src/gba/Globals.cpp @@ -40,15 +40,15 @@ bool skipSaveGameCheats = false; // 0x0000 to 0x7FFF: set custom 15 bit color int customBackdropColor = -1; -u8 *bios = NULL; -u8 *rom = NULL; -u8 *internalRAM = NULL; -u8 *workRAM = NULL; -u8 *paletteRAM = NULL; -u8 *vram = NULL; -u8 *pix = NULL; -u8 *oam = NULL; -u8 *ioMem = NULL; +u8 *bios = 0; +u8 *rom = 0; +u8 *internalRAM = 0; +u8 *workRAM = 0; +u8 *paletteRAM = 0; +u8 *vram = 0; +u8 *pix = 0; +u8 *oam = 0; +u8 *ioMem = 0; u16 DISPCNT = 0x0080; u16 DISPSTAT = 0x0000; diff --git a/src/gtk/filters.cpp b/src/gtk/filters.cpp index d139600d..45ef80fb 100644 --- a/src/gtk/filters.cpp +++ b/src/gtk/filters.cpp @@ -56,7 +56,7 @@ struct { } static const astFilters[] = { - { "None", 1, { NULL, NULL } }, + { "None", 1, { 0, 0 } }, { "2xSaI", 2, { _2xSaI, _2xSaI32 } }, { "Super 2xSaI", 2, { Super2xSaI, Super2xSaI32 } }, { "Super Eagle", 2, { SuperEagle, SuperEagle32 } }, @@ -76,7 +76,7 @@ struct { } static const astFiltersIB[] = { - { "None", { NULL, NULL } }, + { "None", { 0, 0 } }, { "Smart interframe blending", { SmartIB, SmartIB32 } }, { "Interframe motion blur", { MotionBlurIB, MotionBlurIB32 } } }; diff --git a/src/sdl/filters.cpp b/src/sdl/filters.cpp index 071c21cc..7e136918 100644 --- a/src/sdl/filters.cpp +++ b/src/sdl/filters.cpp @@ -452,7 +452,7 @@ void sdlMakeStretcher(int width, int sizeOption) #else // C_CORE -void (*sdlStretcher)(u8 *, u8*, int) = NULL; +void (*sdlStretcher)(u8 *, u8*, int) = 0; #define SDL_CALL_STRETCHER \ sdlStretcher(srcPtr, dstPtr, width)