basic blitting implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -203,6 +203,10 @@ private:
|
||||
void DoDrawSubBitmap(const wxBitmap &bmp,
|
||||
wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
||||
wxCoord destx, wxCoord desty, int rop, bool useMask);
|
||||
bool DoBlitFromSurface(const wxIDirectFBSurfacePtr& src,
|
||||
wxCoord srcx, wxCoord srcy,
|
||||
wxCoord w, wxCoord h,
|
||||
wxCoord dstx, wxCoord dsty);
|
||||
|
||||
// selects colour into surface's state
|
||||
void SelectColour(const wxColour& clr);
|
||||
|
@@ -22,6 +22,13 @@ public:
|
||||
|
||||
virtual void SelectObject(const wxBitmap& bitmap);
|
||||
|
||||
// implementation from now on:
|
||||
|
||||
wxBitmap GetSelectedObject() const { return m_bmp; }
|
||||
|
||||
private:
|
||||
wxBitmap m_bmp;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
||||
};
|
||||
|
||||
|
@@ -274,6 +274,14 @@ struct wxIDirectFBSurface : public wxDfbWrapper<IDirectFBSurface>
|
||||
int x, int y)
|
||||
{ return Check(m_ptr->Blit(m_ptr, source, source_rect, x, y)); }
|
||||
|
||||
bool StretchBlit(const wxIDirectFBSurfacePtr& source,
|
||||
const DFBRectangle *source_rect,
|
||||
const DFBRectangle *dest_rect)
|
||||
{
|
||||
return Check(m_ptr->StretchBlit(m_ptr, source->GetRaw(),
|
||||
source_rect, dest_rect));
|
||||
}
|
||||
|
||||
|
||||
/// Returns bit depth used by the surface or -1 on error
|
||||
int GetDepth();
|
||||
|
Reference in New Issue
Block a user