Skip to content

Commit

Permalink
Timeline: use mini font for frame numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 2, 2014
1 parent 7ea7521 commit cb2c094
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/ui/timeline.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit cb2c094

Please sign in to comment.