Skip to content

Commit

Permalink
make SDK tool DPI aware on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
arondobos committed Jan 26, 2017
1 parent a5de190 commit eb92a14
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sdktool/sscdev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <wx/wx.h>
#include <wx/imaglist.h>
#include <wx/dynlib.h>

#include <wx/config.h>
#include <wx/scrolbar.h>
Expand Down Expand Up @@ -69,6 +70,15 @@ IMPLEMENT_APP(SCApp)

bool SCApp::OnInit()
{
#ifdef __WXMSW__
typedef BOOL (WINAPI *SetProcessDPIAware_t)(void);
wxDynamicLibrary dllUser32(wxT("user32.dll"));
SetProcessDPIAware_t pfnSetProcessDPIAware =
(SetProcessDPIAware_t)dllUser32.RawGetSymbol(wxT("SetProcessDPIAware"));
if ( pfnSetProcessDPIAware )
pfnSetProcessDPIAware();
#endif

SetAppName( "SDKtool" );

// set the current working directory to locate .pdb on crash
Expand Down

0 comments on commit eb92a14

Please sign in to comment.