diff options
author | Jiri Hnidek <jiri.hnidek@tul.cz> | 2005-09-11 17:19:10 +0400 |
---|---|---|
committer | Jiri Hnidek <jiri.hnidek@tul.cz> | 2005-09-11 17:19:10 +0400 |
commit | d5f55e0502e34d4641a99139de9e6b85c193a679 (patch) | |
tree | 60a739241a9d2c801c920acf126f13edb8693226 /source/blender/src/drawtime.c | |
parent | 6cff3258d50d17926c0a0449b1ced36cc7ab725a (diff) |
- when marker is selected, then it's name is highlighted and name is moved
up. It can be useful, when you have many named markers in timeline.
- screenshot: http://www.kai.vslib.cz/~hnidek/pics/timeline_tweak.jpg
Diffstat (limited to 'source/blender/src/drawtime.c')
-rw-r--r-- | source/blender/src/drawtime.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/src/drawtime.c b/source/blender/src/drawtime.c index 8c756972a09..206e3132c38 100644 --- a/source/blender/src/drawtime.c +++ b/source/blender/src/drawtime.c @@ -148,9 +148,15 @@ static void draw_marker(TimeMarker *marker) glDisable(GL_BLEND); /* and the marker name too, shifted slightly to the top-right */ - BIF_ThemeColor(TH_TEXT); - glRasterPos2f(xpos+(4.0*(xspace/xpixels)), 17.0*yspace/ypixels); - + if(marker->flag & SELECT) { + BIF_ThemeColor(TH_TEXT_HI); + glRasterPos2f(xpos+(4.0*(xspace/xpixels)), 27.0*yspace/ypixels); + } + else { + BIF_ThemeColor(TH_TEXT); + glRasterPos2f(xpos+(4.0*(xspace/xpixels)), 17.0*yspace/ypixels); + } + BMF_DrawString(G.font, marker->name); } |