|
@@ -49,27 +49,33 @@ extern "C"
|
|
|
|
|
|
#if SDL_VERSION_ATLEAST(2,0,0)
|
|
#if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
|
|
-#define SDLK_KP1 SDLK_KP_1
|
|
|
|
-#define SDLK_KP2 SDLK_KP_2
|
|
|
|
-#define SDLK_KP3 SDLK_KP_3
|
|
|
|
-#define SDLK_KP4 SDLK_KP_4
|
|
|
|
-#define SDLK_KP5 SDLK_KP_5
|
|
|
|
-#define SDLK_KP6 SDLK_KP_6
|
|
|
|
-#define SDLK_KP7 SDLK_KP_7
|
|
|
|
-#define SDLK_KP8 SDLK_KP_8
|
|
|
|
-#define SDLK_KP9 SDLK_KP_9
|
|
|
|
-#define SDLK_KP0 SDLK_KP_0
|
|
|
|
-
|
|
|
|
-#define SDL_HWSURFACE 0
|
|
|
|
|
|
+# define SDLK_KP1 SDLK_KP_1
|
|
|
|
+# define SDLK_KP2 SDLK_KP_2
|
|
|
|
+# define SDLK_KP3 SDLK_KP_3
|
|
|
|
+# define SDLK_KP4 SDLK_KP_4
|
|
|
|
+# define SDLK_KP5 SDLK_KP_5
|
|
|
|
+# define SDLK_KP6 SDLK_KP_6
|
|
|
|
+# define SDLK_KP7 SDLK_KP_7
|
|
|
|
+# define SDLK_KP8 SDLK_KP_8
|
|
|
|
+# define SDLK_KP9 SDLK_KP_9
|
|
|
|
+# define SDLK_KP0 SDLK_KP_0
|
|
|
|
+
|
|
|
|
+# define SDL_HWSURFACE 0
|
|
|
|
+
|
|
|
|
+#else
|
|
|
|
+
|
|
|
|
+# ifndef PAL_FATAL_OUTPUT
|
|
|
|
+# define PAL_FATAL_OUTPUT(s)
|
|
|
|
+# endif
|
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifndef max
|
|
#ifndef max
|
|
-#define max fmax
|
|
|
|
|
|
+# define max fmax
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifndef min
|
|
#ifndef min
|
|
-#define min fmin
|
|
|
|
|
|
+# define min fmin
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* This is need when compiled with SDL 1.2 */
|
|
/* This is need when compiled with SDL 1.2 */
|
|
@@ -84,245 +90,75 @@ extern "C"
|
|
#endif /* SDL_FORCE_INLINE not defined */
|
|
#endif /* SDL_FORCE_INLINE not defined */
|
|
|
|
|
|
#if defined(_MSC_VER)
|
|
#if defined(_MSC_VER)
|
|
-#define PAL_FORCE_INLINE static SDL_FORCE_INLINE
|
|
|
|
|
|
+# define PAL_FORCE_INLINE static SDL_FORCE_INLINE
|
|
#else
|
|
#else
|
|
-#define PAL_FORCE_INLINE SDL_FORCE_INLINE
|
|
|
|
|
|
+# define PAL_FORCE_INLINE SDL_FORCE_INLINE
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#if defined (__SYMBIAN32__)
|
|
|
|
-
|
|
|
|
-#undef _WIN32
|
|
|
|
-#undef SDL_INIT_JOYSTICK
|
|
|
|
-#define SDL_INIT_JOYSTICK 0
|
|
|
|
-#define PAL_HAS_MOUSE 1
|
|
|
|
-#define PAL_PREFIX "e:/data/pal/"
|
|
|
|
-#define PAL_SAVE_PREFIX "e:/data/pal/"
|
|
|
|
-# ifdef __S60_5X__
|
|
|
|
-# define PAL_DEFAULT_WINDOW_WIDTH 640
|
|
|
|
-# define PAL_DEFAULT_WINDOW_HEIGHT 360
|
|
|
|
-# else
|
|
|
|
-# define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
|
-# define PAL_DEFAULT_WINDOW_HEIGHT 240
|
|
|
|
-# endif
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
|
|
|
|
-# endif
|
|
|
|
-
|
|
|
|
-# define PAL_PLATFORM " Symbian S60 \x79FB\x690D (c) 2009, netwan."
|
|
|
|
-# define PAL_CREDIT "netwan"
|
|
|
|
-# define PAL_PORTYEAR "2009"
|
|
|
|
-
|
|
|
|
-#elif defined (GEKKO)
|
|
|
|
-
|
|
|
|
-#define PAL_HAS_JOYSTICKS 1
|
|
|
|
-#define PAL_HAS_MOUSE 0
|
|
|
|
-#define PAL_PREFIX "SD:/apps/sdlpal/"
|
|
|
|
-#define PAL_SAVE_PREFIX "SD:/apps/sdlpal/"
|
|
|
|
-
|
|
|
|
-#define PAL_DEFAULT_WINDOW_WIDTH 640
|
|
|
|
-#define PAL_DEFAULT_WINDOW_HEIGHT 480
|
|
|
|
-
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
|
|
|
|
-# endif
|
|
|
|
-
|
|
|
|
-# define PAL_PLATFORM "Nintendo WII"
|
|
|
|
-# define PAL_CREDIT "Rikku2000"
|
|
|
|
-# define PAL_PORTYEAR "2012"
|
|
|
|
-
|
|
|
|
-#elif defined (PSP)
|
|
|
|
-
|
|
|
|
-#define PAL_HAS_JOYSTICKS 0
|
|
|
|
-#define PAL_PREFIX "ms0:/"
|
|
|
|
-#define PAL_SAVE_PREFIX "ms0:/PSP/SAVEDATA/SDLPAL/"
|
|
|
|
-
|
|
|
|
-#define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
|
-#define PAL_DEFAULT_WINDOW_HEIGHT 240
|
|
|
|
-
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | SDL_FULLSCREEN)
|
|
|
|
-# endif
|
|
|
|
-
|
|
|
|
-# define PAL_PLATFORM "Sony PSP"
|
|
|
|
-# define PAL_CREDIT "(Unknown)"
|
|
|
|
-# define PAL_PORTYEAR "2011"
|
|
|
|
-
|
|
|
|
-#elif defined(GPH) || defined(DINGOO)
|
|
|
|
-
|
|
|
|
-#define PAL_PREFIX "./"
|
|
|
|
-#define PAL_SAVE_PREFIX "./"
|
|
|
|
-
|
|
|
|
-# define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
|
-# define PAL_DEFAULT_WINDOW_HEIGHT 240
|
|
|
|
-
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | SDL_FULLSCREEN)
|
|
|
|
-# endif
|
|
|
|
-
|
|
|
|
-# if defined(GPH)
|
|
|
|
-# define PAL_PLATFORM "GPH Caanoo & Wiz"
|
|
|
|
-# else
|
|
|
|
-# define PAL_PLATFORM "DINGOO & Dingux"
|
|
|
|
-# endif
|
|
|
|
-# define PAL_CREDIT "Rikku2000"
|
|
|
|
-# define PAL_PORTYEAR "2011"
|
|
|
|
-
|
|
|
|
-#elif defined(NDS)
|
|
|
|
-
|
|
|
|
-#define PAL_PREFIX "./"
|
|
|
|
-#define PAL_SAVE_PREFIX "./"
|
|
|
|
|
|
+#ifdef _WIN32
|
|
|
|
|
|
-# define PAL_DEFAULT_WINDOW_WIDTH 293
|
|
|
|
-# define PAL_DEFAULT_WINDOW_HEIGHT 196
|
|
|
|
|
|
+# include <windows.h>
|
|
|
|
+# include <io.h>
|
|
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | SDL_FULLSCREEN)
|
|
|
|
|
|
+# if defined(_MSC_VER)
|
|
|
|
+# if _MSC_VER < 1900
|
|
|
|
+# define vsnprintf _vsnprintf
|
|
|
|
+# define snprintf _snprintf
|
|
|
|
+# endif
|
|
|
|
+# define strdup _strdup
|
|
|
|
+# pragma warning (disable:4244)
|
|
# endif
|
|
# endif
|
|
|
|
|
|
-# define PAL_PLATFORM "Nintendo DS"
|
|
|
|
-# define PAL_CREDIT "(Unknown)"
|
|
|
|
-# define PAL_PORTYEAR "2012"
|
|
|
|
-
|
|
|
|
-#elif defined (__N3DS__)
|
|
|
|
-
|
|
|
|
-#define PAL_PREFIX "sdmc:/3ds/sdlpal/"
|
|
|
|
-#define PAL_SAVE_PREFIX "sdmc:/3ds/sdlpal/"
|
|
|
|
-#define PAL_CONFIG_PREFIX "sdmc:/3ds/sdlpal/"
|
|
|
|
-#define PAL_SCREENSHOT_PREFIX "sdmc:/3ds/sdlpal/"
|
|
|
|
-
|
|
|
|
-#define PAL_AUDIO_DEFAULT_BUFFER_SIZE 2048
|
|
|
|
-
|
|
|
|
-#define PAL_HAS_JOYSTICKS 0
|
|
|
|
-#define PAL_HAS_MP3 0
|
|
|
|
-#define PAL_HAS_OGG 0
|
|
|
|
-#define PAL_HAS_TOUCH 0
|
|
|
|
-
|
|
|
|
-#define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
|
-#define PAL_DEFAULT_WINDOW_HEIGHT 240
|
|
|
|
-
|
|
|
|
-#define PAL_VIDEO_INIT_FLAGS (SDL_SWSURFACE | SDL_TOPSCR | SDL_CONSOLEBOTTOM | SDL_FULLSCREEN)
|
|
|
|
-
|
|
|
|
-# define PAL_PLATFORM "Nintendo 3DS"
|
|
|
|
-# define PAL_CREDIT "ZephRay"
|
|
|
|
-# define PAL_PORTYEAR "2017"
|
|
|
|
-
|
|
|
|
-#elif defined (__IOS__)
|
|
|
|
-
|
|
|
|
-#define PAL_PREFIX UTIL_BasePath()
|
|
|
|
-#define PAL_SAVE_PREFIX UTIL_SavePath()
|
|
|
|
-#define PAL_HAS_TOUCH 1
|
|
|
|
-#define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
|
-#define PAL_DEFAULT_WINDOW_HEIGHT 200
|
|
|
|
-
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_FULLSCREEN)
|
|
|
|
|
|
+# ifndef _LPCBYTE_DEFINED
|
|
|
|
+# define _LPCBYTE_DEFINED
|
|
|
|
+typedef const BYTE *LPCBYTE;
|
|
# endif
|
|
# endif
|
|
|
|
|
|
-# define PAL_PLATFORM "Apple iOS"
|
|
|
|
-# define PAL_CREDIT "(Unknown)"
|
|
|
|
-# define PAL_PORTYEAR "2015"
|
|
|
|
-
|
|
|
|
-#elif defined (__ANDROID__)
|
|
|
|
|
|
+#else
|
|
|
|
|
|
-#define PAL_PREFIX "/mnt/sdcard/sdlpal/"
|
|
|
|
-#define PAL_SAVE_PREFIX "/mnt/sdcard/sdlpal/"
|
|
|
|
-#define PAL_HAS_TOUCH 1
|
|
|
|
-#define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
|
-#define PAL_DEFAULT_WINDOW_HEIGHT 200
|
|
|
|
|
|
+# include <unistd.h>
|
|
|
|
+# include <dirent.h>
|
|
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_FULLSCREEN)
|
|
|
|
|
|
+# ifndef FALSE
|
|
|
|
+# define FALSE 0
|
|
# endif
|
|
# endif
|
|
-
|
|
|
|
-# define PAL_PLATFORM "Android"
|
|
|
|
-# define PAL_CREDIT "Rikku2000"
|
|
|
|
-# define PAL_PORTYEAR "2013"
|
|
|
|
-
|
|
|
|
-#elif defined(__WINRT__)
|
|
|
|
-
|
|
|
|
-#define PAL_PREFIX UTIL_BasePath()
|
|
|
|
-#define PAL_SAVE_PREFIX UTIL_SavePath()
|
|
|
|
-#define PAL_CONFIG_PREFIX UTIL_ConfigPath()
|
|
|
|
-#define PAL_SCREENSHOT_PREFIX UTIL_ScreenShotPath()
|
|
|
|
-#define PAL_HAS_TOUCH 1
|
|
|
|
-#define PAL_AUDIO_DEFAULT_BUFFER_SIZE 4096
|
|
|
|
-#define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
|
-#define PAL_DEFAULT_WINDOW_HEIGHT 200
|
|
|
|
-
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_RESIZABLE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
|
|
|
|
|
|
+# ifndef TRUE
|
|
|
|
+# define TRUE 1
|
|
# endif
|
|
# endif
|
|
|
|
+# define VOID void
|
|
|
|
+typedef char CHAR;
|
|
|
|
+typedef wchar_t WCHAR;
|
|
|
|
+typedef short SHORT;
|
|
|
|
+typedef long LONG;
|
|
|
|
|
|
-# define PAL_PLATFORM "Windows Runtime"
|
|
|
|
-# define PAL_CREDIT "(Unknown)"
|
|
|
|
-# define PAL_PORTYEAR "2015"
|
|
|
|
-
|
|
|
|
-#elif defined (__EMSCRIPTEN__)
|
|
|
|
-
|
|
|
|
-#include <emscripten.h>
|
|
|
|
-#define SDL_Delay emscripten_sleep
|
|
|
|
-
|
|
|
|
-#define PAL_PREFIX "data/"
|
|
|
|
-#define PAL_SAVE_PREFIX "data/"
|
|
|
|
-#define PAL_HAS_TOUCH 0
|
|
|
|
-#define PAL_DEFAULT_WINDOW_WIDTH 320
|
|
|
|
-#define PAL_DEFAULT_WINDOW_HEIGHT 200
|
|
|
|
-
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN)
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_FULLSCREEN)
|
|
|
|
-# endif
|
|
|
|
-
|
|
|
|
-# define PAL_PLATFORM "Emscripten"
|
|
|
|
-# define PAL_CREDIT "palxex"
|
|
|
|
-# define PAL_PORTYEAR "2016"
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
|
|
+typedef unsigned long ULONG, *PULONG;
|
|
|
|
+typedef unsigned short USHORT, *PUSHORT;
|
|
|
|
+typedef unsigned char UCHAR, *PUCHAR;
|
|
|
|
|
|
-# ifndef PAL_HAS_JOYSTICKS
|
|
|
|
-# define PAL_HAS_JOYSTICKS 1
|
|
|
|
|
|
+typedef unsigned short WORD, *LPWORD;
|
|
|
|
+typedef unsigned int DWORD, *LPDWORD;
|
|
|
|
+typedef int INT, *LPINT;
|
|
|
|
+# ifndef __OBJC__
|
|
|
|
+typedef int BOOL, *LPBOOL;
|
|
# endif
|
|
# endif
|
|
|
|
+typedef unsigned int UINT, *PUINT, UINT32, *PUINT32;
|
|
|
|
+typedef unsigned char BYTE, *LPBYTE;
|
|
|
|
+typedef const BYTE *LPCBYTE;
|
|
|
|
+typedef float FLOAT, *LPFLOAT;
|
|
|
|
+typedef void *LPVOID;
|
|
|
|
+typedef const void *LPCVOID;
|
|
|
|
+typedef CHAR *LPSTR;
|
|
|
|
+typedef const CHAR *LPCSTR;
|
|
|
|
+typedef WCHAR *LPWSTR;
|
|
|
|
+typedef const WCHAR *LPCWSTR;
|
|
|
|
|
|
-#if SDL_MAJOR_VERSION == 1 && SDL_MINOR_VERSION <= 2
|
|
|
|
-# define PAL_ALLOW_KEYREPEAT 1
|
|
|
|
-# define PAL_HAS_SDLCD 1
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-# define PAL_PREFIX "./"
|
|
|
|
-# define PAL_SAVE_PREFIX "./"
|
|
|
|
-
|
|
|
|
-# define PAL_DEFAULT_WINDOW_WIDTH 640
|
|
|
|
-# define PAL_DEFAULT_WINDOW_HEIGHT 400
|
|
|
|
-# define PAL_DEFAULT_FULLSCREEN_HEIGHT 480
|
|
|
|
-
|
|
|
|
-# if SDL_VERSION_ATLEAST(2,0,0)
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE | (gConfig.fFullScreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0))
|
|
|
|
-# else
|
|
|
|
-# define PAL_VIDEO_INIT_FLAGS (SDL_HWSURFACE | SDL_RESIZABLE | (gConfig.fFullScreen ? SDL_FULLSCREEN : 0))
|
|
|
|
-# endif
|
|
|
|
-
|
|
|
|
-# define PAL_PLATFORM NULL
|
|
|
|
-# define PAL_CREDIT NULL
|
|
|
|
-# define PAL_PORTYEAR NULL
|
|
|
|
-
|
|
|
|
-#endif
|
|
|
|
|
|
+/* When porting SDLPAL to a new platform, please make a separate directory and put a file
|
|
|
|
+ named 'pal_config.h' that contains marco definitions & header includes into the directory.
|
|
|
|
+ The example of this file can be found in directories of existing portings.
|
|
|
|
+ */
|
|
|
|
+#include "pal_config.h"
|
|
|
|
|
|
#ifndef PAL_DEFAULT_FULLSCREEN_HEIGHT
|
|
#ifndef PAL_DEFAULT_FULLSCREEN_HEIGHT
|
|
# define PAL_DEFAULT_FULLSCREEN_HEIGHT PAL_DEFAULT_WINDOW_HEIGHT
|
|
# define PAL_DEFAULT_FULLSCREEN_HEIGHT PAL_DEFAULT_WINDOW_HEIGHT
|
|
@@ -360,77 +196,16 @@ extern "C"
|
|
# define PAL_SCREENSHOT_PREFIX PAL_SAVE_PREFIX
|
|
# define PAL_SCREENSHOT_PREFIX PAL_SAVE_PREFIX
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef _WIN32
|
|
|
|
-
|
|
|
|
-#include <windows.h>
|
|
|
|
-#include <io.h>
|
|
|
|
-
|
|
|
|
-#if defined(_MSC_VER)
|
|
|
|
-# if _MSC_VER < 1900
|
|
|
|
-# define vsnprintf _vsnprintf
|
|
|
|
-# define snprintf _snprintf
|
|
|
|
-# endif
|
|
|
|
-# define strdup _strdup
|
|
|
|
-# pragma warning (disable:4244)
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-#ifndef _LPCBYTE_DEFINED
|
|
|
|
-# define _LPCBYTE_DEFINED
|
|
|
|
-typedef const BYTE *LPCBYTE;
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-#ifndef __WINRT__
|
|
|
|
-# define PAL_HAS_NATIVEMIDI 1
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-#else
|
|
|
|
-
|
|
|
|
-#include <unistd.h>
|
|
|
|
-#include <dirent.h>
|
|
|
|
-
|
|
|
|
-#ifndef FALSE
|
|
|
|
-#define FALSE 0
|
|
|
|
-#endif
|
|
|
|
-#ifndef TRUE
|
|
|
|
-#define TRUE 1
|
|
|
|
-#endif
|
|
|
|
-#define VOID void
|
|
|
|
-typedef char CHAR;
|
|
|
|
-typedef wchar_t WCHAR;
|
|
|
|
-typedef short SHORT;
|
|
|
|
-typedef long LONG;
|
|
|
|
-
|
|
|
|
-typedef unsigned long ULONG, *PULONG;
|
|
|
|
-typedef unsigned short USHORT, *PUSHORT;
|
|
|
|
-typedef unsigned char UCHAR, *PUCHAR;
|
|
|
|
-
|
|
|
|
-typedef unsigned short WORD, *LPWORD;
|
|
|
|
-typedef unsigned int DWORD, *LPDWORD;
|
|
|
|
-typedef int INT, *LPINT;
|
|
|
|
-#ifndef __OBJC__
|
|
|
|
-typedef int BOOL, *LPBOOL;
|
|
|
|
-#endif
|
|
|
|
-typedef unsigned int UINT, *PUINT, UINT32, *PUINT32;
|
|
|
|
-typedef unsigned char BYTE, *LPBYTE;
|
|
|
|
-typedef const BYTE *LPCBYTE;
|
|
|
|
-typedef float FLOAT, *LPFLOAT;
|
|
|
|
-typedef void *LPVOID;
|
|
|
|
-typedef const void *LPCVOID;
|
|
|
|
-typedef CHAR *LPSTR;
|
|
|
|
-typedef const CHAR *LPCSTR;
|
|
|
|
-typedef WCHAR *LPWSTR;
|
|
|
|
-typedef const WCHAR *LPCWSTR;
|
|
|
|
-
|
|
|
|
|
|
+#ifndef PAL_HAS_NATIVEMIDI
|
|
|
|
+# define PAL_HAS_NATIVEMIDI 0
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifndef PAL_HAS_NATIVEMIDI
|
|
|
|
-#define PAL_HAS_NATIVEMIDI 0
|
|
|
|
|
|
+#ifndef PAL_LARGE
|
|
|
|
+# define PAL_LARGE
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#if defined (__SYMBIAN32__) || defined (__N3DS__)
|
|
|
|
-#define PAL_LARGE static
|
|
|
|
-#else
|
|
|
|
-#define PAL_LARGE /* */
|
|
|
|
|
|
+#ifndef PAL_SCALE_SCREEN
|
|
|
|
+# define PAL_SCALE_SCREEN TRUE
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#define __WIDETEXT(quote) L##quote
|
|
#define __WIDETEXT(quote) L##quote
|