Commit 1e66c5a6 authored by raburton's avatar raburton

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

parent f410b242
......@@ -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 );
......
......@@ -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();
}
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment