[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: o_text.c
User: cnieves
Date: 06/10/30 14:42:34
Modified: . Tag: glist_dev o_text.c
Log:
* src/o_text.c (o_text_draw): Don't call gdk_gc_set_foreground if
w_current->DONT_REDRAW is 1. Thanks to Ales for reporting this
bug.
Revision Changes Path
No revision
No revision
1.21.2.3 +18 -16 eda/geda/gaf/gschem/src/o_text.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: o_text.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_text.c,v
retrieving revision 1.21.2.2
retrieving revision 1.21.2.3
diff -u -b -r1.21.2.2 -r1.21.2.3
--- o_text.c 21 Oct 2006 22:20:48 -0000 1.21.2.2
+++ o_text.c 30 Oct 2006 19:42:34 -0000 1.21.2.3
@@ -228,6 +228,7 @@
/* Indicate on the schematic that the text is invisible by */
/* drawing a little I on the screen at the origin */
if (o_current->visibility == INVISIBLE && w_current->show_hidden_text) {
+ if (w_current->DONT_REDRAW == 0) {
if (w_current->override_color != -1 ) {
gdk_gc_set_foreground(w_current->gc,
x_get_color(w_current->override_color));
@@ -236,6 +237,7 @@
gdk_gc_set_foreground(w_current->gc,
x_get_color(w_current->lock_color));
}
+ }
offset = SCREENabs(w_current, 10);
small_dist = SCREENabs(w_current, 20);
@@ -302,6 +304,7 @@
return;
}
+ if (w_current->DONT_REDRAW == 0) {
if (w_current->override_color != -1 ) {
gdk_gc_set_foreground(w_current->gc,
x_get_color(w_current->override_color));
@@ -311,7 +314,6 @@
x_get_color(w_current->lock_color));
}
- if (w_current->DONT_REDRAW == 0) {
gdk_draw_line(w_current->window, w_current->gc,
screen_x1-small_dist,
screen_y1+small_dist,
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs