projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update the popup menu item when it's [un]checked too, as it already happens for the...
[wxWidgets.git]
/
src
/
gtk1
/
dcmemory.cpp
diff --git
a/src/gtk1/dcmemory.cpp
b/src/gtk1/dcmemory.cpp
index 977e3d22fdcb30e93acb470926ad250b28a406fb..a27cce10412dd96bc01d375566dac33c85e500ca 100644
(file)
--- a/
src/gtk1/dcmemory.cpp
+++ b/
src/gtk1/dcmemory.cpp
@@
-1,5
+1,5
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: dcmemory.cpp
+// Name:
src/gtk1/
dcmemory.cpp
// Purpose:
// Author: Robert Roebling
// RCS-ID: $Id$
// Purpose:
// Author: Robert Roebling
// RCS-ID: $Id$
@@
-21,29
+21,27
@@
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
-
wxMemoryDC::wxMemoryDC() : wxWindowDC
()
+
void wxMemoryDC::Init
()
{
{
- m_ok =
FALSE
;
+ m_ok =
false
;
m_cmap = gtk_widget_get_default_colormap();
}
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
m_cmap = gtk_widget_get_default_colormap();
}
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
- : wxWindowDC()
+
: wxWindowDC()
{
{
- m_ok = FALSE;
-
- m_cmap = gtk_widget_get_default_colormap();
-
+ Init();
}
wxMemoryDC::~wxMemoryDC()
{
}
}
wxMemoryDC::~wxMemoryDC()
{
}
-void wxMemoryDC::
SelectObj
ect( const wxBitmap& bitmap )
+void wxMemoryDC::
DoSel
ect( const wxBitmap& bitmap )
{
Destroy();
{
Destroy();
+
m_selected = bitmap;
if (m_selected.Ok())
{
m_selected = bitmap;
if (m_selected.Ok())
{
@@
-56,13
+54,13
@@
void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
m_window = m_selected.GetBitmap();
}
m_window = m_selected.GetBitmap();
}
- m_isMemDC =
TRUE
;
+ m_isMemDC =
true
;
SetUpDC();
}
else
{
SetUpDC();
}
else
{
- m_ok =
FALSE
;
+ m_ok =
false
;
m_window = (GdkWindow *) NULL;
}
}
m_window = (GdkWindow *) NULL;
}
}
@@
-144,5
+142,3
@@
void wxMemoryDC::DoGetSize( int *width, int *height ) const
if (height) (*height) = 0;
}
}
if (height) (*height) = 0;
}
}
-
-