Index: index.c
===================================================================
--- index.c	(revision 1041)
+++ index.c	(revision 1042)
@@ -92,6 +92,9 @@
 
 #else
 
+#ifdef IPHONEOS
+#include "myglut.h"
+#endif
 #include "atexit.c"
 #include "network.h"
 #include "log.c"
ure_filename,filename);
+}
+
+void raydium_capture_frame_now(char *filename)
+{
 unsigned char cGarbage = 0, type,mode,aux,bpp, *imageData;
 short int iGarbage = 0;
 GLuint i;
@@ -66,9 +72,14 @@
     raydium_log("screenshot saved as %s",filename);
 }
 
-
 void raydium_capture_frame_jpeg(char *filename)
 {
+raydium_capture_asked=RAYDIUM_CAPTURE_TGA;
+strcpy(raydium_capture_filename,filename);
+}
+
+void raydium_capture_frame_jpeg_now(char *filename)
+{
 JSAMPLE * image_buffer;	/* Points to large array of R,G,B-order data */
 int image_height;	/* Number of rows in image */
 int image_width;		/* Number of columns in image */