Cosmetic change.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
98dd4ee512
commit
3013a903c1
@ -2503,17 +2503,17 @@ bool wxWindowGTK::PreCreation( wxWindowGTK *parent, const wxPoint &pos, const w
|
|||||||
{
|
{
|
||||||
wxCHECK_MSG( !m_needParent || parent, FALSE, wxT("Need complete parent.") );
|
wxCHECK_MSG( !m_needParent || parent, FALSE, wxT("Need complete parent.") );
|
||||||
|
|
||||||
/* this turns -1 into 20 so that a minimal window is
|
// This turns -1 into 30 so that a minimal window is
|
||||||
visible even although -1,-1 has been given as the
|
// visible even although -1,-1 has been given as the
|
||||||
size of the window. the same trick is used in other
|
// size of the window. the same trick is used in other
|
||||||
ports and should make debugging easier */
|
// ports and should make debugging easier.
|
||||||
m_width = WidthDefault(size.x);
|
m_width = WidthDefault(size.x) ;
|
||||||
m_height = HeightDefault(size.y);
|
m_height = HeightDefault(size.y);
|
||||||
|
|
||||||
m_x = (int)pos.x;
|
m_x = (int)pos.x;
|
||||||
m_y = (int)pos.y;
|
m_y = (int)pos.y;
|
||||||
|
|
||||||
/* some reasonable defaults */
|
// some reasonable defaults
|
||||||
if (!parent)
|
if (!parent)
|
||||||
{
|
{
|
||||||
if (m_x == -1)
|
if (m_x == -1)
|
||||||
@ -3316,6 +3316,7 @@ void wxWindowGTK::WarpPointer( int x, int y )
|
|||||||
gdk_window_warp_pointer( window, x, y );
|
gdk_window_warp_pointer( window, x, y );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect )
|
void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect )
|
||||||
{
|
{
|
||||||
if (!m_widget) return;
|
if (!m_widget) return;
|
||||||
|
@ -2503,17 +2503,17 @@ bool wxWindowGTK::PreCreation( wxWindowGTK *parent, const wxPoint &pos, const w
|
|||||||
{
|
{
|
||||||
wxCHECK_MSG( !m_needParent || parent, FALSE, wxT("Need complete parent.") );
|
wxCHECK_MSG( !m_needParent || parent, FALSE, wxT("Need complete parent.") );
|
||||||
|
|
||||||
/* this turns -1 into 20 so that a minimal window is
|
// This turns -1 into 30 so that a minimal window is
|
||||||
visible even although -1,-1 has been given as the
|
// visible even although -1,-1 has been given as the
|
||||||
size of the window. the same trick is used in other
|
// size of the window. the same trick is used in other
|
||||||
ports and should make debugging easier */
|
// ports and should make debugging easier.
|
||||||
m_width = WidthDefault(size.x);
|
m_width = WidthDefault(size.x) ;
|
||||||
m_height = HeightDefault(size.y);
|
m_height = HeightDefault(size.y);
|
||||||
|
|
||||||
m_x = (int)pos.x;
|
m_x = (int)pos.x;
|
||||||
m_y = (int)pos.y;
|
m_y = (int)pos.y;
|
||||||
|
|
||||||
/* some reasonable defaults */
|
// some reasonable defaults
|
||||||
if (!parent)
|
if (!parent)
|
||||||
{
|
{
|
||||||
if (m_x == -1)
|
if (m_x == -1)
|
||||||
@ -3316,6 +3316,7 @@ void wxWindowGTK::WarpPointer( int x, int y )
|
|||||||
gdk_window_warp_pointer( window, x, y );
|
gdk_window_warp_pointer( window, x, y );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect )
|
void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect )
|
||||||
{
|
{
|
||||||
if (!m_widget) return;
|
if (!m_widget) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user