mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 12:44:53 +00:00
Fix timeline dimensions
Don't multiple 2 times by guiscale()
This commit is contained in:
parent
b0bd722a1f
commit
6dc2b5284e
@ -3067,22 +3067,22 @@ gfx::Size Timeline::celBoxSize() const
|
|||||||
|
|
||||||
int Timeline::headerBoxWidth() const
|
int Timeline::headerBoxWidth() const
|
||||||
{
|
{
|
||||||
return int(skinTheme()->dimensions.timelineBaseSize() * guiscale());
|
return skinTheme()->dimensions.timelineBaseSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Timeline::headerBoxHeight() const
|
int Timeline::headerBoxHeight() const
|
||||||
{
|
{
|
||||||
return int(skinTheme()->dimensions.timelineBaseSize() * guiscale());
|
return skinTheme()->dimensions.timelineBaseSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Timeline::layerBoxHeight() const
|
int Timeline::layerBoxHeight() const
|
||||||
{
|
{
|
||||||
return int(m_zoom*skinTheme()->dimensions.timelineBaseSize()*guiscale() + (int)(m_zoom > 1) * headerBoxHeight());
|
return int(m_zoom*skinTheme()->dimensions.timelineBaseSize() + int(m_zoom > 1) * headerBoxHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
int Timeline::frameBoxWidth() const
|
int Timeline::frameBoxWidth() const
|
||||||
{
|
{
|
||||||
return int(m_zoom*skinTheme()->dimensions.timelineBaseSize()*guiscale());
|
return int(m_zoom*skinTheme()->dimensions.timelineBaseSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
int Timeline::outlineWidth() const
|
int Timeline::outlineWidth() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user