]> git.mxchange.org Git - flightgear.git/commitdiff
Updateds to win32 print system.
authorcurt <curt>
Fri, 29 Oct 1999 18:08:54 +0000 (18:08 +0000)
committercurt <curt>
Fri, 29 Oct 1999 18:08:54 +0000 (18:08 +0000)
src/GUI/gui.cxx

index 5158bd046fd3bcd172e5ab5ebd34afc89b97df6c..15e6fd2e439f996096e336c8cb883dcea7404246 100644 (file)
@@ -861,10 +861,14 @@ void printScreen ( puObject *obj ) {
     BusyCursor( 0 );
     mainMenuBar->hide();
 
-    CGlPrinter p;
+    CGlPrinter p( CGlPrinter::READ_BITMAP );
+    int cur_width = current_view.get_winWidth( );
+    int cur_height = current_view.get_winHeight( );
     p.Begin( "FlightGear" );
     fgInitVisuals();
-    fgReshape( p.GetHorzRes(), p.GetVertRes() );
+    fgReshape( cur_width, cur_height );
+    //fgReshape( p.GetHorzRes(), p.GetVertRes() );
+    fgRenderFrame();
     fgRenderFrame();
     p.End();