Skip to content

Commit

Permalink
try to fix issue with <PlatformToolset>v141_xp and older WindowsTarge…
Browse files Browse the repository at this point in the history
…tPlatformVersion before win 10

 c:\projects\pythonscript\nppplugin\include\dpimanagerv2.h(57): error C2065: 'DPI_AWARENESS_CONTEXT': undeclared identifier (compiling source file ..\src\dpiManagerV2.cpp) [C:\projects\pythonscript\NppPlugin\project\NppPlugin.vcxproj]
  • Loading branch information
chcg committed Jan 1, 2025
1 parent 6357cb4 commit 05c0534
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NppPlugin/include/dpiManagerV2.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
#define USER_DEFAULT_SCREEN_DPI 96
#endif

#ifndef DPI_AWARENESS_CONTEXT
#define DPI_AWARENESS_CONTEXT HANDLE
#endif

class DPIManagerV2
{
public:
Expand Down

0 comments on commit 05c0534

Please sign in to comment.