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) {
|
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...");
|
||||||
}
|
}
|
||||||
|
@ -109,6 +109,10 @@ namespace dxvk::hud {
|
|||||||
VkExtent2D surfaceSize() const {
|
VkExtent2D surfaceSize() const {
|
||||||
return m_surfaceSize;
|
return m_surfaceSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float scale() const {
|
||||||
|
return m_scale;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user