From: Václav Slavík Date: Mon, 11 Sep 2006 21:00:30 +0000 (+0000) Subject: fixed two typos: XLOG2DEV was used instead of YLOG2DEV X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5034c9dbba567b00c35aa58da229e8a866db9ba8 fixed two typos: XLOG2DEV was used instead of YLOG2DEV git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/dfb/dc.cpp b/src/dfb/dc.cpp index 0cda14d34c..1b16ef396b 100644 --- a/src/dfb/dc.cpp +++ b/src/dfb/dc.cpp @@ -96,7 +96,7 @@ void wxDC::DoSetClippingRegion(wxCoord cx, wxCoord cy, wxCoord cw, wxCoord ch) r.x1 = XLOG2DEV(cx); r.y1 = YLOG2DEV(cy); r.x2 = r.x1 + XLOG2DEVREL(cw) - 1; - r.y2 = r.y1 + XLOG2DEVREL(ch) - 1; + r.y2 = r.y1 + YLOG2DEVREL(ch) - 1; if ( !m_surface->SetClip(&r) ) return; @@ -289,7 +289,7 @@ void wxDC::DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxCHECK_RET( Ok(), wxT("invalid dc") ); wxCoord xx = XLOG2DEV(x); - wxCoord yy = XLOG2DEV(y); + wxCoord yy = YLOG2DEV(y); // update the bounding box wxCoord w, h;