mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 23:48:29 +00:00
SDL_vitamessagebox: if/else wrap preprocessor condition instead of two if conditions
This commit is contained in:
@@ -32,6 +32,11 @@
|
|||||||
|
|
||||||
int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
||||||
{
|
{
|
||||||
|
#if !SDL_VIDEO_RENDER_VITA_GXM
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
#else
|
||||||
SceCommonDialogConfigParam commonDialogConfigParam;
|
SceCommonDialogConfigParam commonDialogConfigParam;
|
||||||
SceMsgDialogParam param;
|
SceMsgDialogParam param;
|
||||||
SceMsgDialogUserMessageParam msgParam;
|
SceMsgDialogUserMessageParam msgParam;
|
||||||
@@ -41,12 +46,7 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
|||||||
SceMsgDialogResult dialog_result;
|
SceMsgDialogResult dialog_result;
|
||||||
SceCommonDialogErrorCode init_result;
|
SceCommonDialogErrorCode init_result;
|
||||||
SDL_bool setup_minimal_gxm = SDL_FALSE;
|
SDL_bool setup_minimal_gxm = SDL_FALSE;
|
||||||
#if !SDL_VIDEO_RENDER_VITA_GXM
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
|
||||||
if (messageboxdata->numbuttons > 3)
|
if (messageboxdata->numbuttons > 3)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user