diff options
author | lluís gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2010-03-19 09:16:27 +0000 |
---|---|---|
committer | lluís gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2010-03-19 09:16:27 +0000 |
commit | 34f933e7643a176a2f78b852f9be24faa4c150b9 (patch) | |
tree | ec2f2f3eb5cb9825ff6fa964239cda3c1f815441 /videogrid | |
parent | b174c146cebd481d3bac8d469508539fcad1928d (diff) |
added pd_bind to videogrid_dialog function, this way if you change the name of the object still is able of receiving messages
svn path=/trunk/externals/pdvjtools/; revision=13233
Diffstat (limited to 'videogrid')
-rw-r--r-- | videogrid/videogrid.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/videogrid/videogrid.cc b/videogrid/videogrid.cc index 794bccd..2191623 100644 --- a/videogrid/videogrid.cc +++ b/videogrid/videogrid.cc @@ -1100,6 +1100,8 @@ extern "C" /* no fa res */ break; } + /* amb aquest nom es prepara per poder rebre dades */ + pd_bind(&x->x_obj.ob_pd, x->x_name); /* el màxim es fixa pel nombre de digits utilitzats pel nom de la imatge temporal */ maxdigit = pow(10,BYTES_NUM_TEMP); if((nfil*ncol) <= maxdigit){ @@ -1747,6 +1749,8 @@ extern "C" } static void videogrid_destroy(t_videogrid *x){ + /* allibera el nom */ + pd_unbind(&x->x_obj.ob_pd, x->x_name); /* elimina el contingut de la cua */ eliminarCua(&x->x_cua); post("Videogrid destroyed.\n"); |