fix for 3d-display image export (blank box appears in image)

This commit is contained in:
raburton 2007-06-05 15:51:07 +00:00
parent f410b2427b
commit 1e66c5a6d8
3 changed files with 4 additions and 3 deletions

View File

@ -601,7 +601,7 @@ bool fmt_is_jpeg = FALSE;
if ( FullFileName.IsEmpty() ) return;
}
wxYield(); // Requested to allow tne window redraw after closing the dialog box
Redraw(true);
wxSize image_size = GetClientSize();
wxClientDC dc(this);
wxBitmap bitmap(image_size.x, image_size.y );

View File

@ -39,7 +39,7 @@ static void Draw3D_FilledSegmentWithHole(double startx, double starty,
/**********************************/
void Pcb3D_GLCanvas::Redraw( void )
void Pcb3D_GLCanvas::Redraw( bool finish )
/**********************************/
{
SetCurrent();
@ -67,6 +67,7 @@ void Pcb3D_GLCanvas::Redraw( void )
}
glFlush();
if (finish) glFinish();
SwapBuffers();
}

View File

@ -92,7 +92,7 @@ public:
void TakeScreenshot(wxCommandEvent & event);
void SetView3D(int keycode);
void DisplayStatus(void);
void Redraw(void);
void Redraw(bool finish = false);
GLuint DisplayCubeforTest(void);
void OnEnterWindow( wxMouseEvent& event );