X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..646a8a4d0e965993411ae958ffbd6e7a7d87678c:/src/univ/gauge.cpp?ds=sidebyside diff --git a/src/univ/gauge.cpp b/src/univ/gauge.cpp index 68057bda65..b6cf655b04 100644 --- a/src/univ/gauge.cpp +++ b/src/univ/gauge.cpp @@ -5,8 +5,8 @@ // Modified by: // Created: 20.02.01 // RCS-ID: $Id$ -// Copyright: (c) 2001 Vadim Zeitlin -// License: wxWindows license +// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) +// License: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "gaugeuniv.h" #endif @@ -65,12 +65,12 @@ bool wxGauge::Create(wxWindow *parent, if ( !wxGaugeBase::Create(parent, id, range, pos, size, style, validator, name) ) { - return FALSE; + return false; } SetBestSize(size); - return TRUE; + return true; } // ---------------------------------------------------------------------------- @@ -104,12 +104,12 @@ wxSize wxGauge::DoGetBestClientSize() const if ( IsVertical() ) { size.x = (3*size.y) / 2 + 2; - size.y = -1; + size.y = wxDefaultCoord; } else { size.y = (3*size.x) / 2 + 2; - size.x = -1; + size.x = wxDefaultCoord; } return size;