mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Don't make layer indentation wider for child layers when we zoom in the timeline
This commit is contained in:
parent
f2fae67734
commit
fed9a2b45c
@ -2095,7 +2095,9 @@ void Timeline::drawLayer(ui::Graphics* g, int layerIdx)
|
||||
doc::color_t layerColor = layer->userData().color();
|
||||
gfx::Rect textBounds = bounds;
|
||||
if (m_rows[layerIdx].level() > 0) {
|
||||
int w = m_rows[layerIdx].level()*frameBoxWidth();
|
||||
const int frameBoxWithWithoutZoom =
|
||||
skinTheme()->dimensions.timelineBaseSize();
|
||||
const int w = m_rows[layerIdx].level()*frameBoxWithWithoutZoom;
|
||||
textBounds.x += w;
|
||||
textBounds.w -= w;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user