Cosmetic change.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2002-07-06 14:36:39 +00:00
parent 98dd4ee512
commit 3013a903c1
2 changed files with 16 additions and 14 deletions

View File

@ -2503,17 +2503,17 @@ bool wxWindowGTK::PreCreation( wxWindowGTK *parent, const wxPoint &pos, const w
{
wxCHECK_MSG( !m_needParent || parent, FALSE, wxT("Need complete parent.") );
/* this turns -1 into 20 so that a minimal window is
visible even although -1,-1 has been given as the
size of the window. the same trick is used in other
ports and should make debugging easier */
m_width = WidthDefault(size.x);
// This turns -1 into 30 so that a minimal window is
// visible even although -1,-1 has been given as the
// size of the window. the same trick is used in other
// ports and should make debugging easier.
m_width = WidthDefault(size.x) ;
m_height = HeightDefault(size.y);
m_x = (int)pos.x;
m_y = (int)pos.y;
/* some reasonable defaults */
// some reasonable defaults
if (!parent)
{
if (m_x == -1)
@ -3316,6 +3316,7 @@ void wxWindowGTK::WarpPointer( int x, int y )
gdk_window_warp_pointer( window, x, y );
}
void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect )
{
if (!m_widget) return;

View File

@ -2503,17 +2503,17 @@ bool wxWindowGTK::PreCreation( wxWindowGTK *parent, const wxPoint &pos, const w
{
wxCHECK_MSG( !m_needParent || parent, FALSE, wxT("Need complete parent.") );
/* this turns -1 into 20 so that a minimal window is
visible even although -1,-1 has been given as the
size of the window. the same trick is used in other
ports and should make debugging easier */
m_width = WidthDefault(size.x);
// This turns -1 into 30 so that a minimal window is
// visible even although -1,-1 has been given as the
// size of the window. the same trick is used in other
// ports and should make debugging easier.
m_width = WidthDefault(size.x) ;
m_height = HeightDefault(size.y);
m_x = (int)pos.x;
m_y = (int)pos.y;
/* some reasonable defaults */
// some reasonable defaults
if (!parent)
{
if (m_x == -1)
@ -3316,6 +3316,7 @@ void wxWindowGTK::WarpPointer( int x, int y )
gdk_window_warp_pointer( window, x, y );
}
void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect )
{
if (!m_widget) return;