projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compilation fixes for wx{X11,GTK1,Motif} after making ref data non copyable.
[wxWidgets.git]
/
src
/
osx
/
core
/
bitmap.cpp
diff --git
a/src/osx/core/bitmap.cpp
b/src/osx/core/bitmap.cpp
index 157cb84b510f760069c54f8fd2db99afee89d7a8..64d0b39e2d21096129a8c4130126d87bdf0498d9 100644
(file)
--- a/
src/osx/core/bitmap.cpp
+++ b/
src/osx/core/bitmap.cpp
@@
-639,6
+639,9
@@
CGImageRef wxBitmapRefData::CreateCGImage() const
{
if ( m_depth != 1 && m_bitmapMask == NULL )
{
{
if ( m_depth != 1 && m_bitmapMask == NULL )
{
+#if 0
+ // in order for this code to work properly, wxMask would have to invert black and white
+ // in the native bitmap
if ( m_bitmapMask )
{
CGImageRef tempImage = CGBitmapContextCreateImage( m_hBitmap );
if ( m_bitmapMask )
{
CGImageRef tempImage = CGBitmapContextCreateImage( m_hBitmap );
@@
-648,6
+651,7
@@
CGImageRef wxBitmapRefData::CreateCGImage() const
CGImageRelease(tempImage);
}
else
CGImageRelease(tempImage);
}
else
+#endif
image = CGBitmapContextCreateImage( m_hBitmap );
}
else
image = CGBitmapContextCreateImage( m_hBitmap );
}
else
@@
-778,11
+782,7
@@
void wxBitmapRefData::Free()
m_hBitmap = NULL ;
}
m_hBitmap = NULL ;
}
- if (m_bitmapMask)
- {
- delete m_bitmapMask;
- m_bitmapMask = NULL;
- }
+ wxDELETE(m_bitmapMask);
}
wxBitmapRefData::~wxBitmapRefData()
}
wxBitmapRefData::~wxBitmapRefData()
@@
-1024,7
+1024,7
@@
IconRef wxBitmap::CreateIconRef() const
WX_NSImage wxBitmap::GetNSImage() const
{
wxCFRef< CGImageRef > cgimage(CreateCGImage());
WX_NSImage wxBitmap::GetNSImage() const
{
wxCFRef< CGImageRef > cgimage(CreateCGImage());
- return wxOSX
Create
NSImageFromCGImage( cgimage );
+ return wxOSX
Get
NSImageFromCGImage( cgimage );
}
#endif
}
#endif
@@
-1034,7
+1034,7
@@
WX_NSImage wxBitmap::GetNSImage() const
WX_UIImage wxBitmap::GetUIImage() const
{
wxCFRef< CGImageRef > cgimage(CreateCGImage());
WX_UIImage wxBitmap::GetUIImage() const
{
wxCFRef< CGImageRef > cgimage(CreateCGImage());
- return wxOSX
Create
UIImageFromCGImage( cgimage );
+ return wxOSX
Get
UIImageFromCGImage( cgimage );
}
#endif
}
#endif