Browse Source

Reinitialize hardware cursor on window size change

pull/5221/head
Gleb Mazovetskiy 4 years ago
parent
commit
2d0d7ccc88
  1. 4
      Source/init.cpp

4
Source/init.cpp

@ -15,6 +15,7 @@
#include "DiabloUI/diabloui.h"
#include "engine/assets.hpp"
#include "engine/dx.h"
#include "hwcursor.hpp"
#include "miniwin/misc_msg.h"
#include "mpq/mpq_reader.hpp"
#include "options.h"
@ -245,6 +246,9 @@ void MainWndProc(const SDL_Event &event)
case SDL_WINDOWEVENT_EXPOSED:
force_redraw = 255;
break;
case SDL_WINDOWEVENT_SIZE_CHANGED:
ReinitializeHardwareCursor();
break;
case SDL_WINDOWEVENT_LEAVE:
sgbMouseDown = CLICK_NONE;
LastMouseButtonAction = MouseActionType::None;

Loading…
Cancel
Save