Skip to content

Commit

Permalink
Disable code region if not on Windows, oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
coornio committed Sep 21, 2024
1 parent 270724a commit f177fee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Assistants/BasicVideoSpec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ void BasicVideoSpec::createWindow(const s32 window_W, const s32 window_H) {

if (!window) {
showErrorBox("Failed to create SDL_Window");
} else {
}
#ifdef SDL_PLATFORM_WIN32
else {
const auto windowHandle{
SDL_GetPointerProperty(
SDL_GetWindowProperties(window),
Expand All @@ -69,6 +71,7 @@ void BasicVideoSpec::createWindow(const s32 window_W, const s32 window_H) {
);
}
}
#endif
}

void BasicVideoSpec::createRenderer() {
Expand Down

0 comments on commit f177fee

Please sign in to comment.