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
a6c60412
Commit
a6c60412
authored
Dec 27, 2010
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX: Fixes making bitmap2compoenent work.
parent
2faf4296
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
bitmap2cmp_gui.cpp
bitmap2component/bitmap2cmp_gui.cpp
+15
-3
No files found.
bitmap2component/bitmap2cmp_gui.cpp
View file @
a6c60412
...
...
@@ -132,16 +132,28 @@ BM2CMP_FRAME::~BM2CMP_FRAME()
void
BM2CMP_FRAME
::
OnPaint
(
wxPaintEvent
&
event
)
{
#ifdef __WXMAC__
// Otherwise fails due: using wxPaintDC without being in a native paint event
wxClientDC
pict_dc
(
m_InitialPicturePanel
);
wxClientDC
greyscale_dc
(
m_GreyscalePicturePanel
);
wxClientDC
nb_dc
(
m_BNPicturePanel
);
#else
wxPaintDC
pict_dc
(
m_InitialPicturePanel
);
wxPaintDC
greyscale_dc
(
m_GreyscalePicturePanel
);
wxPaintDC
nb_dc
(
m_BNPicturePanel
);
#endif
m_InitialPicturePanel
->
PrepareDC
(
pict_dc
);
m_GreyscalePicturePanel
->
PrepareDC
(
greyscale_dc
);
m_BNPicturePanel
->
PrepareDC
(
nb_dc
);
// OSX crashes with empty bitmaps (on initial refreshes)
if
(
m_Pict_Bitmap
.
IsOk
()
&&
m_Greyscale_Bitmap
.
IsOk
()
&&
m_BN_Bitmap
.
IsOk
())
{
pict_dc
.
DrawBitmap
(
m_Pict_Bitmap
,
0
,
0
,
false
);
greyscale_dc
.
DrawBitmap
(
m_Greyscale_Bitmap
,
0
,
0
,
false
);
nb_dc
.
DrawBitmap
(
m_BN_Bitmap
,
0
,
0
,
false
);
}
}
/* Called to load a bitmap file
...
...
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