[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) { HudPos position) {
if (m_show) { if (m_show) {
renderer.drawText(16.0f, 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 }, { 1.0f, 1.0f, 1.0f, 1.0f },
"Compiling shaders..."); "Compiling shaders...");
} }

View File

@ -110,6 +110,10 @@ namespace dxvk::hud {
return m_surfaceSize; return m_surfaceSize;
} }
float scale() const {
return m_scale;
}
private: private:
enum class Mode { enum class Mode {