mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
clang-format
This commit is contained in:
parent
a7f7ea9e14
commit
6ac4693c0b
@ -900,7 +900,9 @@ MxResult IsleApp::SetupWindow()
|
||||
#else
|
||||
Uint32 flags = 0;
|
||||
flags |= SDL_WINDOW_OPENGL;
|
||||
if (m_fullScreen) flags |= SDL_WINDOW_FULLSCREEN;
|
||||
if (m_fullScreen) {
|
||||
flags |= SDL_WINDOW_FULLSCREEN;
|
||||
}
|
||||
window = SDL_CreateWindow(
|
||||
WINDOW_TITLE,
|
||||
SDL_WINDOWPOS_CENTERED,
|
||||
|
||||
@ -78,10 +78,8 @@ BOOL MxDirect3D::Create(
|
||||
nullptr
|
||||
);
|
||||
#else
|
||||
MxVideoParam* videoParam = (MxVideoParam*) SDL_GetWindowData(
|
||||
reinterpret_cast<SDL_Window*>(hWnd),
|
||||
ISLE_PROP_WINDOW_CREATE_VIDEO_PARAM
|
||||
);
|
||||
MxVideoParam* videoParam =
|
||||
(MxVideoParam*) SDL_GetWindowData(reinterpret_cast<SDL_Window*>(hWnd), ISLE_PROP_WINDOW_CREATE_VIDEO_PARAM);
|
||||
#endif
|
||||
#ifndef MXDIRECTX_FOR_CONFIG
|
||||
assert(videoParam);
|
||||
|
||||
@ -235,10 +235,8 @@ BOOL MxDeviceEnumerate::EnumDirectDrawCallback(LPGUID p_guid, LPSTR p_driverDesc
|
||||
nullptr
|
||||
);
|
||||
#else
|
||||
MxVideoParam* videoParam = (MxVideoParam*) SDL_GetWindowData(
|
||||
reinterpret_cast<SDL_Window*>(m_hWnd),
|
||||
ISLE_PROP_WINDOW_CREATE_VIDEO_PARAM
|
||||
);
|
||||
MxVideoParam* videoParam = (MxVideoParam*)
|
||||
SDL_GetWindowData(reinterpret_cast<SDL_Window*>(m_hWnd), ISLE_PROP_WINDOW_CREATE_VIDEO_PARAM);
|
||||
#endif
|
||||
#ifndef MXDIRECTX_FOR_CONFIG
|
||||
assert(videoParam);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user