Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-02-11 07:02:17 +0300
committerJoshua Leung <aligorith@gmail.com>2007-02-11 07:02:17 +0300
commit045c40b815f862772cad042e346821539aa52cea (patch)
tree72084cb645da92140d6908067c94b728116c2fd3 /source/blender/src/drawtime.c
parentb90a0ce285a3a71c2a6e617baabc08fe11624c7f (diff)
Tiny cleanups of marker drawing code. Shouldn't cause any problems.
Diffstat (limited to 'source/blender/src/drawtime.c')
-rw-r--r--source/blender/src/drawtime.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/drawtime.c b/source/blender/src/drawtime.c
index 315d8d004a6..a06541b8665 100644
--- a/source/blender/src/drawtime.c
+++ b/source/blender/src/drawtime.c
@@ -181,17 +181,17 @@ static void draw_markers_time(void)
}
}
-void draw_markers_timespace(View2D *v2d)
+void draw_markers_timespace()
{
TimeMarker *marker;
float yspace, ypixels;
/* move ortho view to align with slider in bottom */
- glTranslatef(0.0f, v2d->cur.ymin, 0.0f);
+ glTranslatef(0.0f, G.v2d->cur.ymin, 0.0f);
/* bad hacks in drawing markers... inverse correct that as well */
- yspace= v2d->cur.ymax - v2d->cur.ymin;
- ypixels= v2d->mask.ymax - v2d->mask.ymin;
+ yspace= G.v2d->cur.ymax - G.v2d->cur.ymin;
+ ypixels= G.v2d->mask.ymax - G.v2d->mask.ymin;
glTranslatef(0.0f, -11.0*yspace/ypixels, 0.0f);
/* unselected markers are drawn at the first time */
@@ -205,7 +205,7 @@ void draw_markers_timespace(View2D *v2d)
if(marker->flag & SELECT) draw_marker(marker);
}
- glTranslatef(0.0f, -v2d->cur.ymin, 0.0f);
+ glTranslatef(0.0f, -G.v2d->cur.ymin, 0.0f);
glTranslatef(0.0f, 11.0*yspace/ypixels, 0.0f);
}