fix for 3d-display image export (blank box appears in image)
This commit is contained in:
parent
f410b2427b
commit
1e66c5a6d8
|
@ -601,7 +601,7 @@ bool fmt_is_jpeg = FALSE;
|
||||||
if ( FullFileName.IsEmpty() ) return;
|
if ( FullFileName.IsEmpty() ) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxYield(); // Requested to allow tne window redraw after closing the dialog box
|
Redraw(true);
|
||||||
wxSize image_size = GetClientSize();
|
wxSize image_size = GetClientSize();
|
||||||
wxClientDC dc(this);
|
wxClientDC dc(this);
|
||||||
wxBitmap bitmap(image_size.x, image_size.y );
|
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();
|
SetCurrent();
|
||||||
|
@ -67,6 +67,7 @@ void Pcb3D_GLCanvas::Redraw( void )
|
||||||
}
|
}
|
||||||
|
|
||||||
glFlush();
|
glFlush();
|
||||||
|
if (finish) glFinish();
|
||||||
SwapBuffers();
|
SwapBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ public:
|
||||||
void TakeScreenshot(wxCommandEvent & event);
|
void TakeScreenshot(wxCommandEvent & event);
|
||||||
void SetView3D(int keycode);
|
void SetView3D(int keycode);
|
||||||
void DisplayStatus(void);
|
void DisplayStatus(void);
|
||||||
void Redraw(void);
|
void Redraw(bool finish = false);
|
||||||
GLuint DisplayCubeforTest(void);
|
GLuint DisplayCubeforTest(void);
|
||||||
|
|
||||||
void OnEnterWindow( wxMouseEvent& event );
|
void OnEnterWindow( wxMouseEvent& event );
|
||||||
|
|
Loading…
Reference in New Issue