void Draw::EndNative() { if(inchPixels != nativeDpi && --native == 0) { DotsMode(); actual_offset = actual_offset_bak; SetOrg(); } }
void SystemDraw::OffsetOp(Point p) { GuiLock __; Begin(); actual_offset += p; drawingclip -= p; LTIMING("Offset"); SetOrg(); }
void Draw::BeginNative() { if(inchPixels != nativeDpi && ++native == 1) { ::SetMapMode(handle, MM_TEXT); actual_offset_bak = actual_offset; Native(actual_offset); SetOrg(); } }
bool SystemDraw::ClipoffOp(const Rect& r) { GuiLock __; Begin(); LTIMING("Clipoff"); LLOG("ClipoffOp " << r << ", GetClip() = " << GetClip() << ", actual_offset = " << actual_offset); actual_offset += r.TopLeft(); bool q = IntersectClip(r); drawingclip -= r.TopLeft(); SetOrg(); LLOG("//ClipoffOp, GetClip() = " << GetClip() << ", actual_offset = " << actual_offset); return q; }
void SystemDraw::EndOp() { GuiLock __; LTIMING("End"); ASSERT(cloff.GetCount()); Cloff& w = cloff.Top(); actual_offset = w.org; drawingclip = w.drawingclip; ::SelectClipRgn(handle, w.hrgn); SetOrg(); if(w.hrgn) ::DeleteObject(w.hrgn); cloff.Drop(); }
void ScreenBase::MatchGandP3d(m2::PointD const & g, m2::PointD const &p3d) { m2::PointD g_current = PtoG(P3dtoP(p3d)); SetOrg(m_Org - g_current + g); }
void ScreenBase::MatchGandP(m2::PointD const & g, m2::PointD const & p) { m2::PointD g_current = PtoG(p); SetOrg(m_Org - g_current + g); }