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