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:
authorRob Haarsma <phaseIV@zonnet.nl>2003-05-13 14:34:33 +0400
committerRob Haarsma <phaseIV@zonnet.nl>2003-05-13 14:34:33 +0400
commitd40cb3da9fde059cf4e57f215997b336bde5e79e (patch)
tree2a95f433f638846e5cef66848f92897aa8818674
parent060f1b068d26a502639884a7fd28cb026ab40435 (diff)
fixed minor text color issue.
-rw-r--r--source/blender/src/buttons.c22
-rw-r--r--source/blender/src/interface.c15
2 files changed, 29 insertions, 8 deletions
diff --git a/source/blender/src/buttons.c b/source/blender/src/buttons.c
index 9a8ec4278e5..6e55ad9fb97 100644
--- a/source/blender/src/buttons.c
+++ b/source/blender/src/buttons.c
@@ -6423,6 +6423,16 @@ static char *imagetype_pup(void)
}
+static char *avicodec_str(void)
+{
+ static char string[1024];
+
+ sprintf(string, "Codec: %s", G.scene->r.avicodecdata->avicodecname);
+
+ return string;
+}
+
+
void renderbuts(void)
{
ID *id;
@@ -6577,10 +6587,12 @@ void renderbuts(void)
if(G.scene->r.imtype == R_QUICKTIME) {
#ifdef WITH_QUICKTIME
#if defined (_WIN32) || defined (__APPLE__)
+ glColor3f(0.65, 0.65, 0.7);
+ glRecti(892,yofs+46,892+225,yofs+45+20);
if(!have_qtcodec)
- uiDefBut(block, LABEL, 0, "Codec: not set", 892,yofs+42,225,20, 0, 0, 0, 0, 0, "");
+ uiDefBut(block, LABEL, 0, "Codec: not set", 892,yofs+44,225,20, 0, 0, 0, 0, 0, "");
else
- uiDefBut(block, LABEL, 0, qtcdname, 892,yofs+42,225,20, 0, 0, 0, 0, 0, "");
+ uiDefBut(block, LABEL, 0, qtcdname, 892,yofs+44,225,20, 0, 0, 0, 0, 0, "");
uiDefBut(block, BUT,B_SELECTCODEC, "Set codec", 892,yofs,112,20, 0, 0, 0, 0, 0, "Set codec settings for Quicktime");
#else /* libquicktime */
if (!G.scene->r.qtcodecdata) G.scene->r.qtcodecdata = MEM_callocN(sizeof(QtCodecData), "QtCodecData");
@@ -6600,10 +6612,12 @@ void renderbuts(void)
#endif /* WITH_QUICKTIME */
} else {
#ifdef _WIN32
+ glColor3f(0.65, 0.65, 0.7);
+ glRecti(892,yofs+46,892+225,yofs+45+20);
if(G.scene->r.avicodecdata == NULL)
- uiDefBut(block, LABEL, 0, "Codec: not set.", 892,yofs+42,225,20, 0, 0, 0, 0, 0, "");
+ uiDefBut(block, LABEL, 0, "Codec: not set.", 892,yofs+43,225,20, 0, 0, 0, 0, 0, "");
else
- uiDefBut(block, LABEL, 0, G.scene->r.avicodecdata->avicodecname, 892,yofs+42,225,20, 0, 0, 0, 0, 0, "");
+ uiDefBut(block, LABEL, 0, avicodec_str(), 892,yofs+43,225,20, 0, 0, 0, 0, 0, "");
#endif
uiDefBut(block, BUT,B_SELECTCODEC, "Set codec", 892,yofs,112,20, 0, 0, 0, 0, 0, "Set codec settings for AVI");
}
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c
index f8e834a13b5..cf9e942ea55 100644
--- a/source/blender/src/interface.c
+++ b/source/blender/src/interface.c
@@ -920,6 +920,7 @@ static void ui_draw_but_BUTM(uiBut *but)
float x;
short len;
char *cpoin;
+ int sel;
but->embossfunc(but->col, but->aspect, but->x1, but->y1, but->x2, but->y2, but->flag);
@@ -930,11 +931,17 @@ static void ui_draw_but_BUTM(uiBut *but)
if(cpoin) *cpoin= 0;
if(but->embossfunc==ui_emboss_P) {
- if(but->flag & UI_ACTIVE) glColor3ub(255,255,255);
- else glColor3ub(0,0,0);
+ if(but->flag & UI_ACTIVE) {
+ glColor3ub(255,255,255);
+ sel = 1;
+ } else {
+ glColor3ub(0,0,0);
+ sel = 0;
+ }
}
else {
glColor3ub(0,0,0);
+ sel = 0;
}
/* If there's an icon too (made with uiDefIconTextBut) then draw the icon
@@ -953,10 +960,10 @@ static void ui_draw_but_BUTM(uiBut *but)
#ifdef INTERNATIONAL
if(G.ui_international == TRUE) {
if(U.transopts & TR_BUTTONS) { // BUTTON TEXTS
- FTF_DrawString(but->drawstr, FTF_USE_GETTEXT | FTF_INPUT_UTF8, but->flag & UI_ACTIVE);
+ FTF_DrawString(but->drawstr, FTF_USE_GETTEXT | FTF_INPUT_UTF8, sel);
}
else {
- FTF_DrawString(but->drawstr, FTF_NO_TRANSCONV | FTF_INPUT_UTF8, but->flag & UI_ACTIVE);
+ FTF_DrawString(but->drawstr, FTF_NO_TRANSCONV | FTF_INPUT_UTF8, sel);
}
}
else {