Diff of /ptpicker.c [bd1035] .. [20a9b8]  Maximize  Restore

  Switch to side-by-side view

--- a/ptpicker.c
+++ b/ptpicker.c
@@ -359,7 +359,7 @@
 		gl->numParam = numParam;
 		
 		// Set pano dimensionw
-		gl->pano.width = (pt_int32)(gl->im[n].width * gl->pano.hfov / gl->im[n].hfov);
+		gl->pano.width = (int32_t)(gl->im[n].width * gl->pano.hfov / gl->im[n].hfov);
 		gl->pano.width /= 10; gl->pano.width *= 10;
 		
 			
@@ -371,16 +371,16 @@
 		else	// Cylinder
 		{
 			if( gl->im[n].format == _rectilinear )
-				gl->pano.height = (pt_int32)(gl->im[n].height * cos( DEG_TO_RAD(dYaw) / 2.0 ));
+				gl->pano.height = (int32_t)(gl->im[n].height * cos( DEG_TO_RAD(dYaw) / 2.0 ));
 			else
 			{
 				double vfov = gl->im[n].hfov * (double)gl->im[n].height / (double)gl->im[n].width;
 				
 				
 				if( vfov < 180.0 )
-					gl->pano.height = (pt_int32)(gl->im[n].height * tan( DEG_TO_RAD(vfov) / 2.0 ) * cos( DEG_TO_RAD(dYaw) / 2.0 ) / ( DEG_TO_RAD(vfov) / 2.0));
+					gl->pano.height = (int32_t)(gl->im[n].height * tan( DEG_TO_RAD(vfov) / 2.0 ) * cos( DEG_TO_RAD(dYaw) / 2.0 ) / ( DEG_TO_RAD(vfov) / 2.0));
 				else
-					gl->pano.height = (pt_int32)(gl->im[n].height * tan( DEG_TO_RAD(160.0) / 2.0 ) / ( DEG_TO_RAD(160.0) / 2.0));
+					gl->pano.height = (int32_t)(gl->im[n].height * tan( DEG_TO_RAD(160.0) / 2.0 ) / ( DEG_TO_RAD(160.0) / 2.0));
 					
 				gl->pano.height /= 10; gl->pano.height *= 10; 
 			}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks