[PD-cvs] SF.net SVN: pure-data:[10625] trunk/externals/pdvjtools/pix_preview
lluisbigorda at users.sourceforge.net
lluisbigorda at users.sourceforge.net
Sun Jan 25 02:01:30 CET 2009
Revision: 10625
http://pure-data.svn.sourceforge.net/pure-data/?rev=10625&view=rev
Author: lluisbigorda
Date: 2009-01-25 01:01:30 +0000 (Sun, 25 Jan 2009)
Log Message:
-----------
makefile works on pd-svn tree
Modified Paths:
--------------
trunk/externals/pdvjtools/pix_preview/Makefile
trunk/externals/pdvjtools/pix_preview/pix_preview.cc
Modified: trunk/externals/pdvjtools/pix_preview/Makefile
===================================================================
--- trunk/externals/pdvjtools/pix_preview/Makefile 2009-01-25 00:48:32 UTC (rev 10624)
+++ trunk/externals/pdvjtools/pix_preview/Makefile 2009-01-25 01:01:30 UTC (rev 10625)
@@ -1,5 +1,5 @@
-PD_DIR = /usr/src/pd-0.40-2
-GEM_DIR = /usr/src/Gem
+PD_DIR = ../../../pd
+GEM_DIR = ../../../Gem
LIBS = -lm
GEM2PNM_VERSION = 0.6
Modified: trunk/externals/pdvjtools/pix_preview/pix_preview.cc
===================================================================
--- trunk/externals/pdvjtools/pix_preview/pix_preview.cc 2009-01-25 00:48:32 UTC (rev 10624)
+++ trunk/externals/pdvjtools/pix_preview/pix_preview.cc 2009-01-25 01:01:30 UTC (rev 10625)
@@ -355,19 +355,20 @@
//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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Pd-cvs
mailing list