mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[hud] Fix positioning of compiler item when scaled
This commit is contained in:
parent
a23be756d7
commit
6814ad45d4
@ -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...");
|
||||
}
|
||||
|
@ -110,6 +110,10 @@ namespace dxvk::hud {
|
||||
return m_surfaceSize;
|
||||
}
|
||||
|
||||
float scale() const {
|
||||
return m_scale;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
enum class Mode {
|
||||
|
Loading…
x
Reference in New Issue
Block a user