mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-03 23:00:14 +02:00
Build config flags are either defined or undefined, never 0
This is for consistency with CMake build configuration Also added SDL_VIDEO_RENDER_GPU to the non-CMake build configurations
This commit is contained in:
@@ -26,13 +26,13 @@
|
||||
#include "SDL_vitamessagebox.h"
|
||||
#include <psp2/message_dialog.h>
|
||||
|
||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
||||
#ifdef SDL_VIDEO_RENDER_VITA_GXM
|
||||
#include "../../render/vitagxm/SDL_render_vita_gxm_tools.h"
|
||||
#endif // SDL_VIDEO_RENDER_VITA_GXM
|
||||
|
||||
bool VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonID)
|
||||
{
|
||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
||||
#ifdef SDL_VIDEO_RENDER_VITA_GXM
|
||||
SceMsgDialogParam param;
|
||||
SceMsgDialogUserMessageParam msgParam;
|
||||
SceMsgDialogButtonsParam buttonParam;
|
||||
@@ -119,7 +119,7 @@ bool VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonID
|
||||
(void)messageboxdata;
|
||||
(void)buttonID;
|
||||
return SDL_Unsupported();
|
||||
#endif
|
||||
#endif // SDL_VIDEO_RENDER_VITA_GXM
|
||||
}
|
||||
|
||||
#endif // SDL_VIDEO_DRIVER_VITA
|
||||
|
||||
@@ -440,7 +440,7 @@ void X11_HandleXinput2Event(SDL_VideoDevice *_this, XGenericEventCookie *cookie)
|
||||
case XI_Motion:
|
||||
{
|
||||
const XIDeviceEvent *xev = (const XIDeviceEvent *)cookie->data;
|
||||
#if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
|
||||
#ifdef SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
|
||||
bool pointer_emulated = ((xev->flags & XIPointerEmulated) != 0);
|
||||
#else
|
||||
bool pointer_emulated = false;
|
||||
@@ -478,7 +478,7 @@ void X11_HandleXinput2Event(SDL_VideoDevice *_this, XGenericEventCookie *cookie)
|
||||
}
|
||||
} break;
|
||||
|
||||
#if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
|
||||
#ifdef SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
|
||||
case XI_TouchBegin:
|
||||
{
|
||||
const XIDeviceEvent *xev = (const XIDeviceEvent *)cookie->data;
|
||||
|
||||
Reference in New Issue
Block a user