Esempio n. 1
0
void Draw::EndNative()
{
	if(inchPixels != nativeDpi && --native == 0) {
		DotsMode();
		actual_offset = actual_offset_bak;
		SetOrg();
	}
}
Esempio n. 2
0
void SystemDraw::OffsetOp(Point p)
{
    GuiLock __;
    Begin();
    actual_offset += p;
    drawingclip -= p;
    LTIMING("Offset");
    SetOrg();
}
Esempio n. 3
0
void Draw::BeginNative()
{
	if(inchPixels != nativeDpi && ++native == 1) {
		::SetMapMode(handle, MM_TEXT);
		actual_offset_bak = actual_offset;
		Native(actual_offset);
		SetOrg();
	}
}
Esempio n. 4
0
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;
}
Esempio n. 5
0
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();
}
Esempio n. 6
0
void ScreenBase::MatchGandP3d(m2::PointD const & g, m2::PointD const &p3d)
{
  m2::PointD g_current = PtoG(P3dtoP(p3d));
  SetOrg(m_Org - g_current + g);
}
Esempio n. 7
0
void ScreenBase::MatchGandP(m2::PointD const & g, m2::PointD const & p)
{
  m2::PointD g_current = PtoG(p);
  SetOrg(m_Org - g_current + g);
}