mirror of https://github.com/doitsujin/dxvk
[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...");
|
||||
}
|
||||
|
|
|
@ -109,6 +109,10 @@ namespace dxvk::hud {
|
|||
VkExtent2D surfaceSize() const {
|
||||
return m_surfaceSize;
|
||||
}
|
||||
|
||||
float scale() const {
|
||||
return m_scale;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Reference in New Issue