Minor fix for timeline header of frames

This commit is contained in:
David Capello 2014-02-08 17:56:36 -03:00
parent aa9eec2cfd
commit cc08a054ad

View File

@ -1144,7 +1144,7 @@ void Timeline::drawHeaderFrame(ui::Graphics* g, FrameNumber frame)
// Draw the header for the layers.
char buf[256];
std::sprintf(buf, "%d", frame+1);
std::sprintf(buf, "%d", (frame+1)%100); // Draw only the first two digits.
drawPart(g, bounds, buf, m_timelineBoxStyle,
is_active, is_hover, is_clicked);
}