projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use GTKRemoveMnemonics instead of wxStripMenuCodes
[wxWidgets.git]
/
src
/
os2
/
pen.cpp
diff --git
a/src/os2/pen.cpp
b/src/os2/pen.cpp
index 77badbd512ec44d2e4de8745851c962ac470fb95..dc85074fd91425835a425ef0e189e592ae160b53 100644
(file)
--- a/
src/os2/pen.cpp
+++ b/
src/os2/pen.cpp
@@
-1,5
+1,5
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: pen.cpp
+// Name:
src/os2/
pen.cpp
// Purpose: wxPen
// Author: David Webster
// Modified by:
// Purpose: wxPen
// Author: David Webster
// Modified by:
@@
-13,13
+13,12
@@
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
-#include <stdio.h>
-#include "wx/setup.h"
-#include "wx/list.h"
-#include "wx/utils.h"
-#include "wx/app.h"
-#include "wx/pen.h"
-#include "wx/log.h"
+ #include <stdio.h>
+ #include "wx/list.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
+ #include "wx/pen.h"
+ #include "wx/log.h"
#endif
#include "wx/os2/private.h"
#endif
#include "wx/os2/private.h"
@@
-151,16
+150,16
@@
bool wxPen::RealizeResource()
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(
"Unable to set current color table to RGB mode. Error: %s\n"
, sError.c_str());
- return
FALSE
;
+ wxLogError(
_T("Unable to set current color table to RGB mode. Error: %s\n")
, sError.c_str());
+ return
false
;
}
if (M_PENDATA->m_nStyle == wxTRANSPARENT)
{
}
if (M_PENDATA->m_nStyle == wxTRANSPARENT)
{
- return
TRUE
;
+ return
true
;
}
}
- COLORREF
vPmColour = 0L;
- USHORT
uLineType =
wx2os2PenStyle(M_PENDATA->m_nStyle);
+ COLORREF vPmColour = 0L;
+ USHORT
uLineType = (USHORT)
wx2os2PenStyle(M_PENDATA->m_nStyle);
vPmColour = M_PENDATA->m_vColour.GetPixel();
vPmColour = M_PENDATA->m_vColour.GetPixel();
@@
-215,8
+214,8
@@
bool wxPen::RealizeResource()
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(
"Can't set Gpi attributes for a LINEBUNDLE. Error: %s\n"
, sError.c_str());
- return
FALSE
;
+ wxLogError(
_T("Can't set Gpi attributes for a LINEBUNDLE. Error: %s\n")
, sError.c_str());
+ return
false
;
}
ULONG flAttrMask = 0L;
}
ULONG flAttrMask = 0L;
@@
-300,11
+299,12
@@
bool wxPen::RealizeResource()
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
- wxLogError(
"Can't set Gpi attributes for an AREABUNDLE. Error: %s\n"
, sError.c_str());
+ wxLogError(
_T("Can't set Gpi attributes for an AREABUNDLE. Error: %s\n")
, sError.c_str());
}
}
- return bOk;
+
+ return (bool)bOk;
}
}
- return
FALSE
;
+ return
false
;
} // end of wxPen::RealizeResource
WXHANDLE wxPen::GetResourceHandle()
} // end of wxPen::RealizeResource
WXHANDLE wxPen::GetResourceHandle()
@@
-315,16
+315,14
@@
WXHANDLE wxPen::GetResourceHandle()
return (WXHANDLE)M_PENDATA->m_hPen;
} // end of wxPen::GetResourceHandle
return (WXHANDLE)M_PENDATA->m_hPen;
} // end of wxPen::GetResourceHandle
-bool wxPen::FreeResource(
- bool bForce
-)
+bool wxPen::FreeResource( bool WXUNUSED(bForce) )
{
if (M_PENDATA && (M_PENDATA->m_hPen != 0))
{
M_PENDATA->m_hPen = 0;
{
if (M_PENDATA && (M_PENDATA->m_hPen != 0))
{
M_PENDATA->m_hPen = 0;
- return
TRUE
;
+ return
true
;
}
}
- else return
FALSE
;
+ else return
false
;
} // end of wxPen::FreeResource
bool wxPen::IsFree() const
} // end of wxPen::FreeResource
bool wxPen::IsFree() const
@@
-347,29
+345,21
@@
void wxPen::Unshare()
}
} // end of wxPen::Unshare
}
} // end of wxPen::Unshare
-void wxPen::SetColour(
- const wxColour& rColour
-)
+void wxPen::SetColour( const wxColour& rColour )
{
Unshare();
M_PENDATA->m_vColour = rColour;
RealizeResource();
} // end of wxPen::SetColour
{
Unshare();
M_PENDATA->m_vColour = rColour;
RealizeResource();
} // end of wxPen::SetColour
-void wxPen::SetColour(
- unsigned char cRed
-, unsigned char cGreen
-, unsigned char cBlue
-)
+void wxPen::SetColour( unsigned char cRed, unsigned char cGreen, unsigned char cBlue)
{
Unshare();
M_PENDATA->m_vColour.Set(cRed, cGreen, cBlue);
RealizeResource();
} // end of wxPen::SetColour
{
Unshare();
M_PENDATA->m_vColour.Set(cRed, cGreen, cBlue);
RealizeResource();
} // end of wxPen::SetColour
-void wxPen::SetPS(
- HPS hPS
-)
+void wxPen::SetPS( HPS hPS )
{
Unshare();
if (M_PENDATA->m_hPen)
{
Unshare();
if (M_PENDATA->m_hPen)
@@
-406,10
+396,8
@@
void wxPen::SetStipple(
RealizeResource();
} // end of wxPen::SetStipple
RealizeResource();
} // end of wxPen::SetStipple
-void wxPen::SetDashes(
- int nNbDashes
-, const wxDash* pDash
-)
+void wxPen::SetDashes( int WXUNUSED(nNbDashes),
+ const wxDash* WXUNUSED(pDash) )
{
//
// Does nothing under OS/2
{
//
// Does nothing under OS/2
@@
-473,5
+461,3
@@
int wx2os2PenStyle(
}
return nPMStyle;
} // end of wx2os2PenStyle
}
return nPMStyle;
} // end of wx2os2PenStyle
-
-