[Gridflow-cvs] [svn] commit: r5498 - /trunk/src/quicktimecamera.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Apr 20 00:20:12 EDT 2010


Author: matju
Date: Tue Apr 20 00:20:11 2010
New Revision: 5498

Log:
first attempt of "size"

Modified:
    trunk/src/quicktimecamera.cxx

Modified: trunk/src/quicktimecamera.cxx
==============================================================================
--- trunk/src/quicktimecamera.cxx (original)
+++ trunk/src/quicktimecamera.cxx Tue Apr 20 00:20:11 2010
@@ -310,6 +310,13 @@
 };
 
 \def 0 size (int height, int width) {
+	dim = new Dim(height,width,dim->v[2]);
+	rect.bottom = height;
+	rect.right = width;
+	OSErr e = VDSetDigitizerRect(vdc,&rect);
+	if (e!=noErr) RAISE("VDSetDigitizerRect error");
+	e = SGSetChannelBounds(m_vc,&rect);
+	if (e!=noErr) post("could not set SG ChannelBounds");
 }
 
 \def 0 get (t_symbol *s=0) {
@@ -323,7 +330,7 @@
 		post("slot=%d gdh=%p maskgdh=%p",di.slot,di.gdh,di.maskgdh);
 		post("minDestHeight=%d minDestWidth=%d maxDestHeight=%d maxDestWidth=%d",
 			di.minDestHeight, di.minDestWidth, di.maxDestHeight, di.maxDestWidth);
-		post("blendlevels=%d reserved=%d",di.blendLevels,di.reserved);
+		post("blendLevels=%d reserved=%d",di.blendLevels,di.reserved);
 		//Rect r;
 		//OSErr e = SGGetChannelBounds (m_vc,&r);
 		//if (e!=noErr) RAISE("SGGetChannelBounds error");



More information about the Gridflow-cvs mailing list