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-04-06 10:52:00 +0400
committerJoshua Leung <aligorith@gmail.com>2007-04-06 10:52:00 +0400
commit29c07081455c3b32f13f13c5c63da59c7055e136 (patch)
tree7503b91eb4c3f255df586b1f7d3a5e601b825023 /source/blender/src/edit.c
parent21d1b9e31084246da631de76b5903e831e4f9be6 (diff)
== Preview Range ==
Preview Range now works in the IPO editor.
Diffstat (limited to 'source/blender/src/edit.c')
-rw-r--r--source/blender/src/edit.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c
index 7bebc0cdc87..a0057371a33 100644
--- a/source/blender/src/edit.c
+++ b/source/blender/src/edit.c
@@ -288,12 +288,24 @@ int get_border(rcti *rect, short flag)
areamouseco_to_ipoco(&sipo->v2d, mval, dvec, dvec+1);
areamouseco_to_ipoco(&sipo->v2d, mvalo+2, dvec+2, dvec+3);
- sprintf(str, "Time: %.4f Y %.4f", dvec[0]-dvec[2], dvec[1]-dvec[3]);
- glRasterPos2i(30, 30);
+ if (flag == 5) {
+ /* setting preview range */
+ if (dvec[0] < dvec[2])
+ sprintf(str, "Preview Range: %d to %d", (int)dvec[0], (int)dvec[2]);
+ else
+ sprintf(str, "Preview Range: %d to %d", (int)dvec[2], (int)dvec[0]);
+ }
+ else
+ sprintf(str, "Time: %.4f Y %.4f", dvec[0]-dvec[2], dvec[1]-dvec[3]);
+
+ BIF_ThemeColor(TH_BACK);
+ glRecti(14, 24, 165, 38);
+
glColor3f(0.0, 0.0, 0.0);
+ glRasterPos2i(15, 27);
BMF_DrawString(G.fonts, str);
- glRasterPos2i(31, 31);
- glColor3f(0.9, 0.9, 0.9);
+ glColor3f(0.8, 0.8, 0.8);
+ glRasterPos2i(16, 28);
BMF_DrawString(G.fonts, str);
}
else if ((ELEM3(curarea->spacetype, SPACE_ACTION, SPACE_NLA, SPACE_TIME)) && flag==5) {