Skip to content

Commit

Permalink
Calculate display scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonnyg committed May 20, 2024
1 parent 75e8fb4 commit c5237c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/platform/src/platform_window_glfw3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ namespace dmPlatform

float GetDisplayScaleFactor(HWindow window)
{
return 1.0f;
return dmMath::Max(window->m_Width / window->m_WidthScreen, window->m_Height / window->m_HeightScreen);
}

void* AcquireAuxContext(HWindow window)
Expand Down

0 comments on commit c5237c2

Please sign in to comment.