Skip to content

Commit

Permalink
Fix #431
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Apr 23, 2024
1 parent 95e9e15 commit 6969eec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Plugins/VGUI2Extension/DpiManagerInternal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ class CDpiManagerInternal : public IDpiManagerInternal
if (g_iVideoHeight < proH)
m_bIsHighDpiSupported = false;

if (g_iEngineType == ENGINE_GOLDSRC_HL25)
{
m_bIsHighDpiSupported = true;
}

if (IsHighDpiSupportEnabled())
{
g_pVGuiSurface2->SetForcingHDProportional(true);
Expand Down
1 change: 1 addition & 0 deletions Plugins/VGUI2Extension/VGUI2Extension.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
Expand Down

0 comments on commit 6969eec

Please sign in to comment.