]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcsvg.cpp
message output for darwin into console, cannot use the normal converters as these...
[wxWidgets.git] / src / common / dcsvg.cpp
index baf6095050d47214cd6cd58db0161923f159988e..3369f14b01c1db469364fd05a8dab26f93515d80 100644 (file)
@@ -229,13 +229,13 @@ void wxSVGFileDC::DoDrawRotatedText(const wxString& sText, wxCoord x, wxCoord y,
 
     // wxT("upper left") and wxT("upper right")
     CalcBoundingBox(x, y);
 
     // wxT("upper left") and wxT("upper right")
     CalcBoundingBox(x, y);
-    CalcBoundingBox(x + w*cos(rad), y - h*sin(rad));
+    CalcBoundingBox((wxCoord)(x + w*cos(rad)), (wxCoord)(y - h*sin(rad)));
 
     // wxT("bottom left") and wxT("bottom right")
     x += (wxCoord)(h*sin(rad));
     y += (wxCoord)(h*cos(rad));
     CalcBoundingBox(x, y);
 
     // wxT("bottom left") and wxT("bottom right")
     x += (wxCoord)(h*sin(rad));
     y += (wxCoord)(h*cos(rad));
     CalcBoundingBox(x, y);
-    CalcBoundingBox(x + h*sin(rad), y + h*cos(rad));
+    CalcBoundingBox((wxCoord)(x + h*sin(rad)), (wxCoord)(y + h*cos(rad)));
 
     if (m_backgroundMode == wxSOLID)
     {
 
     if (m_backgroundMode == wxSOLID)
     {
@@ -840,7 +840,7 @@ wxCoord wxSVGFileDC::LogicalToDeviceYRel(wxCoord y) const
 
 void wxSVGFileDC::write(const wxString &s)
 {
 
 void wxSVGFileDC::write(const wxString &s)
 {
-       wxWX2MBbuf buf = s.mb_str(wxConvUTF8);
+       const wxWX2MBbuf buf = s.mb_str(wxConvUTF8);
        m_outfile->Write(buf, strlen((const char *)buf));
        m_OK = m_outfile->Ok();
 }
        m_outfile->Write(buf, strlen((const char *)buf));
        m_OK = m_outfile->Ok();
 }