mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-20 18:40:57 +00:00
Timeline: use mini font for frame numbers
This commit is contained in:
parent
7ea7521f6a
commit
cb2c094212
@ -1178,8 +1178,12 @@ void Timeline::drawHeaderFrame(ui::Graphics* g, FrameNumber frame)
|
||||
// Draw the header for the layers.
|
||||
char buf[256];
|
||||
std::sprintf(buf, "%d", (frame+1)%100); // Draw only the first two digits.
|
||||
|
||||
FONT* oldFont = g->getFont();
|
||||
g->setFont(((SkinTheme*)getTheme())->getMiniFont());
|
||||
drawPart(g, bounds, buf, m_timelineBoxStyle,
|
||||
is_active, is_hover, is_clicked);
|
||||
g->setFont(oldFont);
|
||||
}
|
||||
|
||||
void Timeline::drawLayer(ui::Graphics* g, int layer_index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user