mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Made SliderComponent scale properly on high resolution displays.
This commit is contained in:
parent
3abbb3c85c
commit
db1a97dd85
|
|
@ -86,7 +86,7 @@ void SliderComponent::render(const Transform4x4f& parentTrans)
|
||||||
(mValueCache ? mValueCache->metrics.size.x() + 4 : 0);
|
(mValueCache ? mValueCache->metrics.size.x() + 4 : 0);
|
||||||
|
|
||||||
// Render line.
|
// Render line.
|
||||||
const float lineWidth = 2;
|
const float lineWidth = 2 * Renderer::getScreenHeightModifier();;
|
||||||
Renderer::drawRect(mKnob.getSize().x() / 2, mSize.y() / 2 -
|
Renderer::drawRect(mKnob.getSize().x() / 2, mSize.y() / 2 -
|
||||||
lineWidth / 2, width, lineWidth, 0x777777FF, 0x777777FF);
|
lineWidth / 2, width, lineWidth, 0x777777FF, 0x777777FF);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue