diff --git a/pd/src/g_bang.c b/pd/src/g_bang.c index 8ee4c3aae5b4ca12117db85521c54ccbbea89dee..259033199d77c2f5579114f291b3d9c2109072b4 100644 --- a/pd/src/g_bang.c +++ b/pd/src/g_bang.c @@ -521,8 +521,10 @@ void bng_draw(t_bng *x, t_glist *glist, int mode) bng_draw_update(x, glist); else if(mode == IEM_GUI_DRAW_MODE_MOVE) bng_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { bng_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) bng_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE) diff --git a/pd/src/g_hdial.c b/pd/src/g_hdial.c index 7a4246e146ff5007f0f9106be433fa0927703578..69146529b07d32266c292cb5deb1dde627fd5fc1 100644 --- a/pd/src/g_hdial.c +++ b/pd/src/g_hdial.c @@ -548,8 +548,10 @@ void hradio_draw(t_hradio *x, t_glist *glist, int mode) sys_queuegui(x, glist, hradio_draw_update); else if(mode == IEM_GUI_DRAW_MODE_MOVE) hradio_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { hradio_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) hradio_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE) diff --git a/pd/src/g_hslider.c b/pd/src/g_hslider.c index bef2d7f4cb34bc5d54693e6149701b8a9d00f142..aa97573fba12a9c483afcddefc38c60f6e772000 100644 --- a/pd/src/g_hslider.c +++ b/pd/src/g_hslider.c @@ -534,8 +534,10 @@ void hslider_draw(t_hslider *x, t_glist *glist, int mode) sys_queuegui(x, glist, hslider_draw_update); else if(mode == IEM_GUI_DRAW_MODE_MOVE) hslider_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { hslider_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) hslider_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE) diff --git a/pd/src/g_mycanvas.c b/pd/src/g_mycanvas.c index 698f3513a4c4c21a59ed0f43fe65f127cd084ae8..9eef50ea28c560fc9636a7ed0af54581e813af67 100644 --- a/pd/src/g_mycanvas.c +++ b/pd/src/g_mycanvas.c @@ -408,8 +408,10 @@ void my_canvas_draw(t_my_canvas *x, t_glist *glist, int mode) { if(mode == IEM_GUI_DRAW_MODE_MOVE) my_canvas_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { my_canvas_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) my_canvas_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE) diff --git a/pd/src/g_numbox.c b/pd/src/g_numbox.c index f45f0a6e389f68ae142defe2334d8fc99e2b67ec..d01051f17fd4803e5f30c13ffbeaf880c9283f9a 100644 --- a/pd/src/g_numbox.c +++ b/pd/src/g_numbox.c @@ -758,8 +758,10 @@ void my_numbox_draw(t_my_numbox *x, t_glist *glist, int mode) sys_queuegui(x, glist, my_numbox_draw_update); else if(mode == IEM_GUI_DRAW_MODE_MOVE) my_numbox_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { my_numbox_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) my_numbox_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE) diff --git a/pd/src/g_toggle.c b/pd/src/g_toggle.c index e4371d3b87ed7b7aa24078b75fb9df7552d465a6..b24a5087e72cfa85bd5cd1caeacec8a205480faf 100644 --- a/pd/src/g_toggle.c +++ b/pd/src/g_toggle.c @@ -539,8 +539,10 @@ void toggle_draw(t_toggle *x, t_glist *glist, int mode) toggle_draw_update(x, glist); else if(mode == IEM_GUI_DRAW_MODE_MOVE) toggle_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { toggle_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) toggle_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE) diff --git a/pd/src/g_vdial.c b/pd/src/g_vdial.c index 9f00162c03a6124ebd1e1de15b2aeef951018925..171f75e830221c6e6a2b7abc3463f7ddd6510e1c 100644 --- a/pd/src/g_vdial.c +++ b/pd/src/g_vdial.c @@ -549,8 +549,10 @@ void vradio_draw(t_vradio *x, t_glist *glist, int mode) sys_queuegui(x, glist, vradio_draw_update); else if(mode == IEM_GUI_DRAW_MODE_MOVE) vradio_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { vradio_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) vradio_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE) diff --git a/pd/src/g_vslider.c b/pd/src/g_vslider.c index 5f20388bed81b70872eb5496006b04ed36206e22..41963db2c376b16d6fadc113cf2dfd9b211c35a9 100644 --- a/pd/src/g_vslider.c +++ b/pd/src/g_vslider.c @@ -544,8 +544,10 @@ void vslider_draw(t_vslider *x, t_glist *glist, int mode) sys_queuegui(x, glist, vslider_draw_update); else if(mode == IEM_GUI_DRAW_MODE_MOVE) vslider_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { vslider_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) vslider_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE) diff --git a/pd/src/g_vumeter.c b/pd/src/g_vumeter.c index b78ea9891bb9ab6081741e2116f37b4463d9fc7d..f3e1c98d93f6d6b3858cf4adf71f542cc772547d 100644 --- a/pd/src/g_vumeter.c +++ b/pd/src/g_vumeter.c @@ -747,8 +747,10 @@ void vu_draw(t_vu *x, t_glist *glist, int mode) //fprintf(stderr,"vu_draw %d\n", mode); if(mode == IEM_GUI_DRAW_MODE_MOVE) vu_draw_move(x, glist); - else if(mode == IEM_GUI_DRAW_MODE_NEW) + else if(mode == IEM_GUI_DRAW_MODE_NEW) { vu_draw_new(x, glist); + sys_vgui(".x%lx.c raise all_cords\n", glist_getcanvas(glist)); + } else if(mode == IEM_GUI_DRAW_MODE_SELECT) vu_draw_select(x, glist); else if(mode == IEM_GUI_DRAW_MODE_ERASE)