imtk

diff src/textbox.c @ 13:9c7987064bb0

- fixed the frame drawing a bit - added global alpha value and various drawing parameters - backported the checkbox check mark from glamtk - fixed progress bar drawing so that the bevels of the trough and the bar won't overlap
author John Tsiombikas <nuclear@siggraph.org>
date Mon, 18 Apr 2011 06:15:46 +0300
parents 10604ff95527
children df2bc9406561
line diff
     1.1 --- a/src/textbox.c	Sun Apr 17 18:20:23 2011 +0300
     1.2 +++ b/src/textbox.c	Mon Apr 18 06:15:46 2011 +0300
     1.3 @@ -76,7 +76,7 @@
     1.4  
     1.5  	if(imtk_has_focus(id)) {
     1.6  		glBegin(GL_LINES);
     1.7 -		glColor4f(0.8, 0.25, 0.18, imtk_get_color(IMTK_TEXT_COLOR)[3]);
     1.8 +		glColor4fv(imtk_get_color(IMTK_CURSOR_COLOR));
     1.9  		glVertex2f(x + strsz + 3, y + 2);
    1.10  		glVertex2f(x + strsz + 3, y + 18);
    1.11  		glVertex2f(x + strsz + 4, y + 2);