Exemplo n.º 1
0
void wxMemoryDC::DoSelect(const wxBitmap& bitmap)
{
    m_bmp = bitmap;

    if ( !bitmap.Ok() )
    {
        // select the bitmap out of the DC
        m_surface = NULL;
        return;
    }

    // init the DC for drawing to this bitmap
    DFBInit(bitmap.GetDirectFBSurface());
}
Exemplo n.º 2
0
wxScreenDCImpl::wxScreenDCImpl(wxScreenDC *owner)
              : wxDFBDCImpl(owner)
{
    DFBInit(wxIDirectFB::Get()->GetPrimarySurface());
}
Exemplo n.º 3
0
Arquivo: dc.cpp Projeto: hgwells/tive
wxDC::wxDC(const wxIDirectFBSurfacePtr& surface)
{
    DFBInit(surface);
}