]> git.mxchange.org Git - simgear.git/commitdiff
Reverse the declaration order. jpgRenderFrame (formerly known as trRenderFrame) is...
authorehofman <ehofman>
Wed, 6 Oct 2004 09:57:31 +0000 (09:57 +0000)
committerehofman <ehofman>
Wed, 6 Oct 2004 09:57:31 +0000 (09:57 +0000)
simgear/screen/jpgfactory.cxx
simgear/screen/jpgfactory.hxx

index b21d5adec6f7c744344e6ffcf4754099e522d11c..aef48ae21861c4cfb8390d33a8df7b9e86a23f21 100644 (file)
@@ -57,8 +57,7 @@ typedef struct {
 
 typedef my_destination_mgr * my_dest_ptr;
 
-/* Where should this go <simgear/screen/tr.h> ?? */
-extern void trRenderFrame( void );
+void (*jpgRenderFrame)(void) = NULL;
 
 trJpgFactory::trJpgFactory() {
     imageWidth = imageHeight = 0;
@@ -233,7 +232,7 @@ int trJpgFactory::compress()
 
 int trJpgFactory::render()
 {
-    if( !tr ) {
+    if( !tr || !jpgRenderFrame ) {
         printf("!! NO tr !!\n   trJpgFactory::render()\n");
         return 0;
     }
@@ -253,7 +252,7 @@ int trJpgFactory::render()
 
     // printf("\ttrBeginTile(tr)\n");
     trBeginTile(tr);
-    trRenderFrame();
+    jpgRenderFrame();
     trEndTile(tr);
 
     /* just to be safe */
index 97a78c7e714109626282bd76a73334e625063a15..2c9c4e9cec255f1efa9fb1c7ca7a7c2270633421 100644 (file)
@@ -36,6 +36,9 @@ extern "C" {
 
 #include <simgear/screen/tr.h>
 
+
+extern void (*jpgRenderFrame)(void);
+
 /* should look at how VNC does this */
 class trJpgFactory {
     private: