Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -19,13 +19,16 @@
|
||||
|
||||
#if wxUSE_LIBGNOMEPRINT
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/math.h"
|
||||
#include "wx/fontutil.h"
|
||||
#include "wx/gtk/private.h"
|
||||
#include "wx/module.h"
|
||||
#include "wx/dynlib.h"
|
||||
#include "wx/dcmemory.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/icon.h"
|
||||
|
||||
#include <libgnomeprint/gnome-print.h>
|
||||
@@ -1160,7 +1163,7 @@ void wxGnomePrintDC::DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width,
|
||||
}
|
||||
}
|
||||
|
||||
void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y,
|
||||
void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y,
|
||||
wxCoord width, wxCoord height)
|
||||
{
|
||||
double r = 4 * (sqrt (2) - 1) / 3;
|
||||
@@ -1170,22 +1173,22 @@ void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y,
|
||||
halfHR = r * halfH;
|
||||
wxCoord halfWI = (wxCoord) halfW,
|
||||
halfHI = (wxCoord) halfH;
|
||||
|
||||
|
||||
gs_lgp->gnome_print_newpath( m_gpc );
|
||||
|
||||
|
||||
// Approximate an ellipse using four cubic splines, clockwise from 0 deg */
|
||||
gs_lgp->gnome_print_moveto( m_gpc,
|
||||
XLOG2DEV(x + width),
|
||||
XLOG2DEV(x + width),
|
||||
YLOG2DEV(y + halfHI) );
|
||||
gs_lgp->gnome_print_curveto( m_gpc,
|
||||
XLOG2DEV(x + width),
|
||||
YLOG2DEV(y + (wxCoord) rint (halfH + halfHR)),
|
||||
XLOG2DEV(x + (wxCoord) rint(halfW + halfWR)),
|
||||
XLOG2DEV(x + (wxCoord) rint(halfW + halfWR)),
|
||||
YLOG2DEV(y + height),
|
||||
XLOG2DEV(x + halfWI),
|
||||
XLOG2DEV(x + halfWI),
|
||||
YLOG2DEV(y + height) );
|
||||
gs_lgp->gnome_print_curveto( m_gpc,
|
||||
XLOG2DEV(x + (wxCoord) rint(halfW - halfWR)),
|
||||
XLOG2DEV(x + (wxCoord) rint(halfW - halfWR)),
|
||||
YLOG2DEV(y + height),
|
||||
XLOG2DEV(x),
|
||||
YLOG2DEV(y + (wxCoord) rint (halfH + halfHR)),
|
||||
@@ -1202,7 +1205,7 @@ void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y,
|
||||
XLOG2DEV(x + width),
|
||||
YLOG2DEV(y + (wxCoord) rint(halfH - halfHR)),
|
||||
XLOG2DEV(x + width), YLOG2DEV(y + halfHI) );
|
||||
|
||||
|
||||
gs_lgp->gnome_print_closepath(m_gpc);
|
||||
}
|
||||
|
||||
@@ -1534,7 +1537,7 @@ void wxGnomePrintDC::SetPen( const wxPen& pen )
|
||||
case wxSHORT_DASH: gs_lgp->gnome_print_setdash( m_gpc, 2, short_dashed, 0 ); break;
|
||||
case wxLONG_DASH: gs_lgp->gnome_print_setdash( m_gpc, 2, wxCoord_dashed, 0 ); break;
|
||||
case wxDOT_DASH: gs_lgp->gnome_print_setdash( m_gpc, 4, dotted_dashed, 0 ); break;
|
||||
case wxUSER_DASH:
|
||||
case wxUSER_DASH:
|
||||
{
|
||||
// It may be noted that libgnomeprint between at least
|
||||
// versions 2.8.0 and 2.12.1 makes a copy of the dashes
|
||||
|
Reference in New Issue
Block a user