From 598e2100232822901c6b45958046e2cfcb1d6e53 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Sat, 13 Apr 2013 10:55:24 -0400 Subject: [PATCH] cords in front after iemgui properties apply --- pd/src/g_bang.c | 4 +++- pd/src/g_hdial.c | 4 +++- pd/src/g_hslider.c | 4 +++- pd/src/g_mycanvas.c | 4 +++- pd/src/g_numbox.c | 4 +++- pd/src/g_toggle.c | 4 +++- pd/src/g_vdial.c | 4 +++- pd/src/g_vslider.c | 4 +++- pd/src/g_vumeter.c | 4 +++- 9 files changed, 27 insertions(+), 9 deletions(-) diff --git a/pd/src/g_bang.c b/pd/src/g_bang.c index 8ee4c3aae..259033199 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 7a4246e14..69146529b 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 bef2d7f4c..aa97573fb 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 698f3513a..9eef50ea2 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 f45f0a6e3..d01051f17 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 e4371d3b8..b24a5087e 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 9f00162c0..171f75e83 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 5f20388be..41963db2c 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 b78ea9891..f3e1c98d9 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) -- GitLab