[hud] Fix positioning of compiler item when scaled

This commit is contained in:
Philip Rebohle 2020-12-02 16:14:15 +01:00
parent a23be756d7
commit 6814ad45d4
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 5 additions and 1 deletions

View File

@ -594,7 +594,7 @@ namespace dxvk::hud {
HudPos position) {
if (m_show) {
renderer.drawText(16.0f,
{ position.x, renderer.surfaceSize().height - 20.0f },
{ position.x, renderer.surfaceSize().height / renderer.scale() - 20.0f },
{ 1.0f, 1.0f, 1.0f, 1.0f },
"Compiling shaders...");
}

View File

@ -109,6 +109,10 @@ namespace dxvk::hud {
VkExtent2D surfaceSize() const {
return m_surfaceSize;
}
float scale() const {
return m_scale;
}
private: