aboutsummaryrefslogtreecommitdiff
path: root/pix_preview/pix_preview.cc
diff options
context:
space:
mode:
authorlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2009-01-25 01:01:30 +0000
committerlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2009-01-25 01:01:30 +0000
commit75f14eb07570d948879158bbbcc6fd2818dc76bb (patch)
tree9db1209d39016120337e80b397bac73cc0415cc3 /pix_preview/pix_preview.cc
parent36db7070b30ee5a7cce245deb76d3901206bf856 (diff)
makefile works on pd-svn tree
svn path=/trunk/externals/pdvjtools/; revision=10625
Diffstat (limited to 'pix_preview/pix_preview.cc')
-rw-r--r--pix_preview/pix_preview.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/pix_preview/pix_preview.cc b/pix_preview/pix_preview.cc
index b759460..df744a2 100644
--- a/pix_preview/pix_preview.cc
+++ b/pix_preview/pix_preview.cc
@@ -355,19 +355,20 @@ void pix_preview :: trigger()
//std::cout << "NOT encoded: " << pnm << std::endl;
- //pnm64 = base64_encode(reinterpret_cast<const unsigned char*>(pnm.c_str()), pnm.length());
+ pnm64 = base64_encode(reinterpret_cast<const unsigned char*>(pnm.c_str()), pnm.length());
+
//std::cout << "encoded: " << pnm64 << std::endl;
- //m_glist = (t_glist *) canvas_getcurrent();
+ m_glist = (t_glist *) canvas_getcurrent();
- //sys_vgui("img%x put {%s}\n", this->x_obj, reinterpret_cast<const unsigned char*>(pnm64.c_str()) );
- image_drawme((pix_preview *)this->x_obj, (t_glist *) this->getCanvas(), 0, m_xsize, m_ysize);
-// sys_vgui(".x%x.c coords %xS %d %d\n",
-// this->getCanvas(), this->x_obj,
-// text_xpix(this->x_obj, (t_glist *)this->getCanvas()) + (m_xsize/2), text_ypix(this->x_obj, (t_glist *)this->getCanvas()) + (m_ysize/2));
+ sys_vgui("img%x configure -data {%s}\n", this->x_obj, reinterpret_cast<const unsigned char*>(pnm64.c_str()) );
+// image_drawme((pix_preview *)this->x_obj, (t_glist *) this->getCanvas(), 0, m_xsize, m_ysize);
+ sys_vgui(".x%x.c coords %xS %d %d\n",
+ this->getCanvas(), this->x_obj,
+ text_xpix(this->x_obj, (t_glist *)this->getCanvas()) + (m_xsize/2), text_ypix(this->x_obj, (t_glist *)this->getCanvas()) + (m_ysize/2));
//fprintf (stderr, "%x %x - %d %d\n",x,(t_object*)x, text_xpix((t_object*)x, glist), text_ypix((t_object*)x, glist));
break;