Пример #1
0
void wxSFScaledDC::PrepareGC()
{
#if wxUSE_GRAPHICS_CONTEXT
    int x, y;
    GetDeviceOrigin(&x, &y);

    m_pGC->Translate( x / m_nScale, y / m_nScale );
#endif
}
Пример #2
0
void wxSFScaledDC::PrepareGC()
{
#if wxUSE_GRAPHICS_CONTEXT && !defined(__WXMAC__)
    int x, y;
    GetDeviceOrigin(&x, &y);

    //m_pGC->Translate( x / m_nScale, y / m_nScale );
    m_pGC->Translate( x, y );
#endif
}