MCPcopy Create free account
hub / github.com/bwapi/bwapi / blitBitmap

Method blitBitmap

bwapi/BWAPI/Source/BW/Bitmap.cpp:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void Bitmap::blitBitmap(const Bitmap *pSrc, int x, int y)
55 {
56 for ( int iy = 0; iy < std::min(this->height()-y, pSrc->height()); ++iy )
57 memcpy(&this->data[(y + iy)*this->width() + x], &pSrc->data[iy*pSrc->width()], std::min(this->width(),pSrc->width()) );
58 }
59
60 void Bitmap::BlitGrpFrame(const grpFrame *pGrp, int x, int y)
61 {

Callers

nothing calls this directly

Calls 2

heightMethod · 0.95
widthMethod · 0.95

Tested by

no test coverage detected