Skip to content

Commit

Permalink
Remove suspissious ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
AJenbo committed Nov 23, 2019
1 parent 48939e1 commit fc5140e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions SourceX/DiabloUI/diabloui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,9 @@ void UiInitialize()
LoadUiGFX();
LoadArtFonts();
if (ArtCursor.surface != nullptr) {
#ifndef __SWITCH__
if (SDL_ShowCursor(SDL_DISABLE) <= -1) {
ErrSdl();
}
#endif
}
}

Expand Down
2 changes: 0 additions & 2 deletions SourceX/DiabloUI/dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,9 @@ void UiOkDialog(const char *text, const char *caption, bool error, UiItem *rende
static bool inDialog = false;

if (!gbActive || inDialog) {
#ifndef __SWITCH__
if (SDL_ShowCursor(SDL_ENABLE) <= -1) {
SDL_Log(SDL_GetError());
}
#endif
if (SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, text, caption, NULL) <= -1) {
SDL_Log(SDL_GetError());
SDL_Log(text);
Expand Down
5 changes: 0 additions & 5 deletions SourceX/miniwin/misc_msg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@ void SetCursorPos(int X, int Y)
mouseWarpingX = X;
mouseWarpingY = Y;
mouseWarping = true;
#ifndef __SWITCH__
LogicalToOutput(&X, &Y);
SDL_WarpMouseInWindow(window, X, Y);
#else
MouseX = X;
MouseY = Y;
#endif
}

// Moves the mouse to the first attribute "+" button.
Expand Down

0 comments on commit fc5140e

Please sign in to comment.