X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea280776839d06d0e8076e79336319d45e276f4e..f0ed40adbf95b79923f4ef12688876156af89061:/src/dfb/dc.cpp?ds=sidebyside diff --git a/src/dfb/dc.cpp b/src/dfb/dc.cpp index 6df3838932..d8d9176e83 100644 --- a/src/dfb/dc.cpp +++ b/src/dfb/dc.cpp @@ -53,10 +53,10 @@ wxDC::wxDC() wxDC::wxDC(const wxIDirectFBSurfacePtr& surface) { - Init(surface); + DFBInit(surface); } -void wxDC::Init(const wxIDirectFBSurfacePtr& surface) +void wxDC::DFBInit(const wxIDirectFBSurfacePtr& surface) { m_ok = (surface != NULL); wxCHECK_RET( surface != NULL, _T("invalid surface") ); @@ -181,9 +181,9 @@ void wxDC::DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) return; wxCoord xx1 = XLOG2DEV(x1); - wxCoord yy1 = XLOG2DEV(y1); + wxCoord yy1 = YLOG2DEV(y1); wxCoord xx2 = XLOG2DEV(x2); - wxCoord yy2 = XLOG2DEV(y2); + wxCoord yy2 = YLOG2DEV(y2); // FIXME: DrawLine() shouldn't draw the last pixel, but DFB's DrawLine() // does draw it. We should undo any change to the last pixel by