projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replaced wxCint() with wxRound() (which is exactly the same) in Rotate(); small code...
[wxWidgets.git]
/
src
/
dfb
/
bitmap.cpp
diff --git
a/src/dfb/bitmap.cpp
b/src/dfb/bitmap.cpp
index 59d158d517ffe37f9810da77b325ffa0c3db64f4..8b57fb96deaf2da115d76923ae9d71e97d31389b 100644
(file)
--- a/
src/dfb/bitmap.cpp
+++ b/
src/dfb/bitmap.cpp
@@
-194,12
+194,6
@@
bool wxBitmap::IsOk() const
return (m_refData != NULL && M_BITMAP->m_surface);
}
return (m_refData != NULL && M_BITMAP->m_surface);
}
-bool wxBitmap::operator==(const wxBitmap& bmp) const
-{
- // FIXME: is this the right way to compare bitmaps?
- return (m_refData == bmp.m_refData);
-}
-
int wxBitmap::GetHeight() const
{
wxCHECK_MSG( Ok(), -1, wxT("invalid bitmap") );
int wxBitmap::GetHeight() const
{
wxCHECK_MSG( Ok(), -1, wxT("invalid bitmap") );
@@
-236,6
+230,7
@@
void wxBitmap::SetMask(wxMask *mask)
{
wxCHECK_RET( Ok(), wxT("invalid bitmap") );
{
wxCHECK_RET( Ok(), wxT("invalid bitmap") );
+ AllocExclusive();
delete M_BITMAP->m_mask;
M_BITMAP->m_mask = mask;
}
delete M_BITMAP->m_mask;
M_BITMAP->m_mask = mask;
}
@@
-328,6
+323,7
@@
void wxBitmap::SetPalette(const wxPalette& palette)
wxCHECK_RET( Ok(), wxT("invalid bitmap") );
wxCHECK_RET( GetDepth() > 1 && GetDepth() <= 8, wxT("cannot set palette for bitmap of this depth") );
wxCHECK_RET( Ok(), wxT("invalid bitmap") );
wxCHECK_RET( GetDepth() > 1 && GetDepth() <= 8, wxT("cannot set palette for bitmap of this depth") );
+ AllocExclusive();
delete M_BITMAP->m_palette;
M_BITMAP->m_palette = NULL;
delete M_BITMAP->m_palette;
M_BITMAP->m_palette = NULL;