From 70a19fd5ab132b039ec98e310927daf928217fee Mon Sep 17 00:00:00 2001 From: uyjulian Date: Sun, 28 Feb 2021 13:59:51 -0600 Subject: [PATCH] SDL_vitamessagebox: if/else wrap preprocessor condition instead of two if conditions --- src/video/vita/SDL_vitamessagebox.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/video/vita/SDL_vitamessagebox.c b/src/video/vita/SDL_vitamessagebox.c index 65d4bad87..392e34c98 100644 --- a/src/video/vita/SDL_vitamessagebox.c +++ b/src/video/vita/SDL_vitamessagebox.c @@ -32,6 +32,11 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) { +#if !SDL_VIDEO_RENDER_VITA_GXM + { + return -1; + } +#else SceCommonDialogConfigParam commonDialogConfigParam; SceMsgDialogParam param; SceMsgDialogUserMessageParam msgParam; @@ -41,12 +46,7 @@ int VITA_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid) SceMsgDialogResult dialog_result; SceCommonDialogErrorCode init_result; 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) { return -1;