Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
1e66c5a6
Commit
1e66c5a6
authored
Jun 05, 2007
by
raburton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for 3d-display image export (blank box appears in image)
parent
f410b242
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
3d_canvas.cpp
3d-viewer/3d_canvas.cpp
+1
-1
3d_draw.cpp
3d-viewer/3d_draw.cpp
+2
-1
3d_viewer.h
3d-viewer/3d_viewer.h
+1
-1
No files found.
3d-viewer/3d_canvas.cpp
View file @
1e66c5a6
...
@@ -601,7 +601,7 @@ bool fmt_is_jpeg = FALSE;
...
@@ -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
);
...
...
3d-viewer/3d_draw.cpp
View file @
1e66c5a6
...
@@ -39,7 +39,7 @@ static void Draw3D_FilledSegmentWithHole(double startx, double starty,
...
@@ -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 )
...
@@ -67,6 +67,7 @@ void Pcb3D_GLCanvas::Redraw( void )
}
}
glFlush
();
glFlush
();
if
(
finish
)
glFinish
();
SwapBuffers
();
SwapBuffers
();
}
}
...
...
3d-viewer/3d_viewer.h
View file @
1e66c5a6
...
@@ -92,7 +92,7 @@ public:
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment