#include "wx/ogl/ogl.h"
-
-#include <math.h>
-
static void IntToHex(unsigned int dec, wxChar *buf);
static unsigned long HexToInt(wxChar *buf);
extern wxChar *oglBuffer;
int wxDrawnShape::DetermineMetaFile(double rotation)
{
double tolerance = 0.0001;
- const double pi = 3.1415926535897932384626433832795 ;
+ const double pi = M_PI ;
double angle1 = 0.0;
double angle2 = pi/2.0;
double angle3 = pi;
}
case DRAWOP_DRAW_ELLIPTIC_ARC:
{
- const double pi = 3.1415926535897932384626433832795 ;
+ const double pi = M_PI ;
// Convert back to degrees
dc.DrawEllipticArc(
*
*/
-static char hexArray[] = {
- _T('0'), _T('1'), _T('2'), _T('3'), _T('4'), _T('5'), _T('6'), _T('7'),
+static char hexArray[] = {
+ _T('0'), _T('1'), _T('2'), _T('3'), _T('4'), _T('5'), _T('6'), _T('7'),
_T('8'), _T('9'), _T('A'), _T('B'), _T('C'), _T('D'), _T('E'), _T('F') };
// Convert unsigned 16-bit integer to 4-character hex string
return 14;
case _T('F'):
return 15;
- #if 0
- // handling this default outside switch removes warning under Borland
- default:
- return 0;
- #endif
}
return 0;
m_outlineOp = -1;
}
-wxPseudoMetaFile::wxPseudoMetaFile(wxPseudoMetaFile& mf)
+wxPseudoMetaFile::wxPseudoMetaFile(wxPseudoMetaFile& mf):wxObject()
{
mf.Copy(*this);
}
void wxPseudoMetaFile::DrawEllipticArc(const wxRect& rect, double startAngle, double endAngle)
{
- const double pi = 3.1415926535897932384626433832795 ;
+ const double pi = M_PI ;
double startAngleRadians = startAngle* (pi*2.0/360.0);
double endAngleRadians = endAngle* (pi*2.0/360.0);