From 5034c9dbba567b00c35aa58da229e8a866db9ba8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 11 Sep 2006 21:00:30 +0000 Subject: [PATCH] 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 --- src/dfb/dc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.45.2