wxOS2 with Open Watcom: correct PCH usage, missing headers, warning fixes, source cleaning and other Watcom adjustements.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-07-21 17:00:07 +00:00
parent 7a893a3152
commit 6670f56440
56 changed files with 1547 additions and 1936 deletions

View File

@@ -6,7 +6,7 @@
// Created: ??/??/98
// RCS-ID: $Id$
// Copyright: (c) AUTHOR
// Licence: wxWindows licence
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx.h".
@@ -68,24 +68,20 @@ wxPalette::~wxPalette()
{
} // end of wxPalette::~wxPalette
bool wxPalette::FreeResource(
bool bForce
)
bool wxPalette::FreeResource( bool WXUNUSED(bForce) )
{
if ( M_PALETTEDATA && M_PALETTEDATA->m_hPalette)
{
::GpiSelectPalette(M_PALETTEDATA->m_hPS, NULLHANDLE);
::GpiDeletePalette((HPAL)M_PALETTEDATA->m_hPalette);
}
return TRUE;
return true;
} // end of wxPalette::FreeResource
bool wxPalette::Create(
int n
, const unsigned char* pRed
, const unsigned char* pGreen
, const unsigned char* pBlue
)
bool wxPalette::Create( int n,
const unsigned char* pRed,
const unsigned char* pGreen,
const unsigned char* pBlue )
{
PULONG pualTable;
@@ -94,7 +90,7 @@ bool wxPalette::Create(
m_refData = new wxPaletteRefData;
pualTable = new ULONG[n];
if (!pualTable)
return(FALSE);
return false;
for (int i = 0; i < n; i ++)
{
@@ -107,7 +103,7 @@ bool wxPalette::Create(
,pualTable
);
delete [] pualTable;
return TRUE;
return true;
} // end of wxPalette::Create
int wxPalette::GetPixel(
@@ -153,12 +149,12 @@ int wxPalette::GetPixel(
//
// Now loop through and find the matching entry
//
ULONG i;
ULONG i;
for (i = 0; i < ulNumEntries; i++)
{
if (pualTable[i] == ulRGB)
{
bFound = TRUE;
bFound = true;
break;
}
}
@@ -234,4 +230,3 @@ void wxPalette::SetPS(
::GpiSelectPalette(M_PALETTEDATA->m_hPS, M_PALETTEDATA->m_hPalette);
M_PALETTEDATA->m_hPS = hPS;
} // end of wxPalette::SetHPALETTE