mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 18:15:35 +00:00
SDL_os2messagebox.c (_makeDlg): remove unnecessary casts
This commit is contained in:
parent
ae9e2149a5
commit
5b6e2d69a5
|
@ -35,8 +35,8 @@
|
|||
#define IDD_PB_FIRST 1003
|
||||
|
||||
typedef struct _MSGBOXDLGDATA {
|
||||
USHORT cb;
|
||||
HWND hwndUnder;
|
||||
USHORT cb;
|
||||
HWND hwndUnder;
|
||||
} MSGBOXDLGDATA;
|
||||
|
||||
static VOID _wmInitDlg(HWND hwnd, MSGBOXDLGDATA *pDlgData)
|
||||
|
@ -205,9 +205,9 @@ static HWND _makeDlg(const SDL_MessageBoxData *messageboxdata)
|
|||
pSDLBtnData = (SDL_MessageBoxButtonData *)messageboxdata->buttons;
|
||||
ULONG cSDLBtnData = messageboxdata->numbuttons;
|
||||
|
||||
PSZ pszTitle = OS2_UTF8ToSys((PSZ) messageboxdata->title);
|
||||
PSZ pszTitle = OS2_UTF8ToSys(messageboxdata->title);
|
||||
ULONG cbTitle = (pszTitle == NULL)? 1 : (SDL_strlen(pszTitle) + 1);
|
||||
PSZ pszText = OS2_UTF8ToSys((PSZ) messageboxdata->message);
|
||||
PSZ pszText = OS2_UTF8ToSys(messageboxdata->message);
|
||||
ULONG cbText = (pszText == NULL)? 1 : (SDL_strlen(pszText) + 1);
|
||||
|
||||
PDLGTEMPLATE pTemplate;
|
||||
|
@ -406,7 +406,7 @@ static HWND _makeDlg(const SDL_MessageBoxData *messageboxdata)
|
|||
pDlgItem->cchClassName = 0; /* 0 - offClassname is WC_ constant. */
|
||||
pDlgItem->offClassName = (USHORT)WC_BUTTON;
|
||||
|
||||
pszBtnText = OS2_UTF8ToSys((PSZ)pSDLBtnData[ulIdx].text);
|
||||
pszBtnText = OS2_UTF8ToSys(pSDLBtnData[ulIdx].text);
|
||||
cbBtnText = (pszBtnText == NULL)? 1 : (SDL_strlen(pszBtnText) + 1);
|
||||
pDlgItem->cchText = cbBtnText;
|
||||
pDlgItem->offText = pcDlgData - (PCHAR)pTemplate; /* Offset to the text. */
|
||||
|
|
Loading…
Reference in a new issue