@@ -162,9 +162,9 @@ static void comment_draw_outline(t_comment *x){
162
162
(unsigned long )x , // %lx_outline
163
163
(unsigned long )x , // all%lx
164
164
x -> x_zoom ,
165
- x -> x_select ?
166
- THISGUI -> i_selectcolor -> s_name :
167
- THISGUI -> i_foregroundcolor -> s_name );
165
+ x -> x_select ? "blue" : "black" );
166
+ // THISGUI->i_selectcolor->s_name :
167
+ // THISGUI->i_foregroundcolor->s_name);
168
168
}
169
169
}
170
170
@@ -177,7 +177,9 @@ static void comment_draw_handle(t_comment *x){
177
177
if (x -> x_resized )
178
178
x2 = x1 + x -> x_max_pixwidth * x -> x_zoom ;
179
179
sys_vgui ("canvas %s -width %d -height %d -bg %s -cursor sb_h_double_arrow\n" ,
180
- ch -> h_pathname , COMMENT_HANDLE_WIDTH , x -> x_height , THISGUI -> i_selectcolor -> s_name );
180
+ ch -> h_pathname , COMMENT_HANDLE_WIDTH , x -> x_height ,
181
+ // THISGUI->i_selectcolor->s_name);
182
+ "blue" );
181
183
sys_vgui ("bind %s <Button> {pdsend [concat %s _click 1 \\;]}\n" , ch -> h_pathname , ch -> h_bindsym -> s_name );
182
184
sys_vgui ("bind %s <ButtonRelease> {pdsend [concat %s _click 0 \\;]}\n" , ch -> h_pathname , ch -> h_bindsym -> s_name );
183
185
sys_vgui ("bind %s <Motion> {pdsend [concat %s _motion %%x %%y \\;]}\n" , ch -> h_pathname , ch -> h_bindsym -> s_name );
@@ -201,7 +203,8 @@ static void comment_draw_inlet(t_comment *x){
201
203
sys_vgui (".x%lx.c create rectangle %d %d %d %d -fill %s -tags [list %lx_in all%lx]\n" ,
202
204
cv , xpos , ypos , xpos + (IOWIDTH * x -> x_zoom ),
203
205
ypos + (IHEIGHT * x -> x_zoom )- x -> x_zoom ,
204
- THISGUI -> i_foregroundcolor -> s_name ,
206
+ // THISGUI->i_foregroundcolor->s_name,
207
+ "black" ,
205
208
(unsigned long )x , (unsigned long )x );
206
209
}
207
210
}
@@ -238,7 +241,8 @@ static void comment_draw(t_comment *x){
238
241
y2 + 2 * x -> x_zoom ,
239
242
(unsigned long )x ,
240
243
(unsigned long )x ,
241
- x -> x_outline ? THISGUI -> i_foregroundcolor -> s_name : x -> x_bgcolor ,
244
+ // x->x_outline ? THISGUI->i_foregroundcolor->s_name : x->x_bgcolor,
245
+ x -> x_outline ? "black" : x -> x_bgcolor ,
242
246
x -> x_bgcolor );
243
247
}
244
248
char buf [COMMENT_OUTBUFSIZE ], * outbuf , * outp ;
@@ -253,7 +257,8 @@ static void comment_draw(t_comment *x){
253
257
text_ypix ((t_text * )x , x -> x_glist ) + x -> x_zoom , // %d
254
258
x -> x_fontname -> s_name , // {%s}
255
259
x -> x_fontsize * x -> x_zoom , // -%d
256
- x -> x_select ? THISGUI -> i_selectcolor -> s_name : x -> x_color , // %s
260
+ // x->x_select ? THISGUI->i_selectcolor->s_name : x->x_color, // %s
261
+ x -> x_select ? "blue" : x -> x_color , // %s
257
262
x -> x_bufsize , // %.
258
263
x -> x_buf , // *s
259
264
x -> x_max_pixwidth * x -> x_zoom , // %d
@@ -397,10 +402,13 @@ static void comment_select(t_gobj *z, t_glist *glist, int state){
397
402
x -> x_select = state ;
398
403
if (!state && x -> x_active )
399
404
comment_activate (z , glist , 0 );
400
- sys_vgui (".x%lx.c itemconfigure txt%lx -fill %s\n" , x -> x_cv , (unsigned long )x , state ? THISGUI -> i_selectcolor -> s_name : x -> x_color );
405
+ sys_vgui (".x%lx.c itemconfigure txt%lx -fill %s\n" , x -> x_cv , (unsigned long )x ,
406
+ // state ? THISGUI->i_selectcolor->s_name : x->x_color);
407
+ state ? "blue" : "black" );
401
408
sys_vgui (".x%lx.c itemconfigure %lx_outline -width %d -outline %s\n" ,
402
409
x -> x_cv , (unsigned long )x , x -> x_zoom ,
403
- state ? THISGUI -> i_selectcolor -> s_name : THISGUI -> i_foregroundcolor -> s_name );
410
+ // state ? THISGUI->i_selectcolor->s_name : THISGUI->i_foregroundcolor->s_name);
411
+ state ? "blue" : "black" );
404
412
// A regular rtext should set 'canvas_editing' variable to its canvas, we don't do it coz
405
413
// we get keys via global binding to "#key" (and coz 'canvas_editing' isn't exported).
406
414
}
@@ -909,7 +917,8 @@ static void comment_bgcolor(t_comment *x, t_float r, t_float g, t_float b){
909
917
sys_vgui (".x%lx.c itemconfigure bg%lx -outline %s -fill %s\n" ,
910
918
x -> x_cv ,
911
919
(unsigned long )x ,
912
- x -> x_outline ? THISGUI -> i_foregroundcolor -> s_name : x -> x_bgcolor ,
920
+ // x->x_outline ? THISGUI->i_foregroundcolor->s_name : x->x_bgcolor,
921
+ x -> x_outline ? "black" : x -> x_bgcolor ,
913
922
x -> x_bgcolor );
914
923
}
915
924
}
@@ -993,7 +1002,9 @@ static void comment_outline(t_comment *x, t_floatarg outline){
993
1002
if (x -> x_outline || x -> x_edit ){
994
1003
comment_draw_outline (x );
995
1004
if (x -> x_bg_flag )
996
- sys_vgui (".x%lx.c itemconfigure bg%lx -outline %s\n" , x -> x_cv , (unsigned long )x , THISGUI -> i_foregroundcolor -> s_name );
1005
+ sys_vgui (".x%lx.c itemconfigure bg%lx -outline %s\n" , x -> x_cv , (unsigned long )x ,
1006
+ // THISGUI->i_foregroundcolor->s_name);
1007
+ "black" );
997
1008
}
998
1009
else {
999
1010
sys_vgui (".x%lx.c delete %lx_outline\n" , (unsigned long )x -> x_cv , (unsigned long )x );
0 commit comments