Skip to content

Commit

Permalink
[Windows] Issue #128 - Fix multiple monitors on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelson committed May 23, 2015
1 parent 9a6737a commit 6013905
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fe_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include <fstream>

#define FE_NAME_D "Attract-Mode"
#define FE_VERSION_D "1.5.2"
const int FE_VERSION_NUM = 152;
#define FE_VERSION_D "1.5.3"
const int FE_VERSION_NUM = 153;

const char *FE_NAME = FE_NAME_D;
const char *FE_COPYRIGHT = FE_NAME_D " " FE_VERSION_D \
Expand Down
3 changes: 3 additions & 0 deletions src/fe_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ void FeWindow::onCreate()
SetWindowPos(hw, HWND_TOP, left, top,
width, height, SWP_FRAMECHANGED);

// As of 2.1, SFML caches the window size. We call setSize below to update SFML appropriately
setSize( sf::Vector2u( width, height ) );

ShowWindow(hw, SW_SHOW);
SetFocus( hw );
#endif
Expand Down

0 comments on commit 6013905

Please sign in to comment.