mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 03:40:57 +00:00
Fix layout issues when UI Scaling > 100% (fix #1345)
This commit is contained in:
parent
88b51e1e82
commit
4fada3aa00
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2001-2015 David Capello
|
// Copyright (C) 2001-2016 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
// the End-User License Agreement for Aseprite.
|
// the End-User License Agreement for Aseprite.
|
||||||
@ -106,7 +106,9 @@ namespace app {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int getDimensionById(const std::string& id) {
|
int getDimensionById(const std::string& id) {
|
||||||
return m_dimensions_by_id[id] * ui::guiscale();
|
// Warning! Don't use ui::guiscale(), as CurrentTheme::get()
|
||||||
|
// is still nullptr when we use this getDimensionById()
|
||||||
|
return m_dimensions_by_id[id] * this->guiscale();
|
||||||
}
|
}
|
||||||
|
|
||||||
gfx::Color getColorById(const std::string& id) {
|
gfx::Color getColorById(const std::string& id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user