Skip to content

Commit

Permalink
Fixed the Linux build.
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Mar 17, 2023
1 parent 6311d9e commit f746247
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1561,8 +1561,10 @@ int main(int argc, char** argv)

log::SetErrorMessageCaption(windowTitle.c_str());

#ifdef _WIN32
// Disable Window scaling.
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
#endif

if (!deviceManager->CreateWindowDeviceAndSwapChain(deviceParams, windowTitle.c_str()))
{
Expand Down

0 comments on commit f746247

Please sign in to comment.