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

Method resize

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

Source from the content-addressed store, hash-verified

16 {}
17
18 void Bitmap::resize(int width, int height)
19 {
20 if ( !this || width <= 0 || height <= 0 )
21 return;
22
23 this->wid = static_cast<u16>(width);
24 this->ht = static_cast<u16>(height);
25 this->data = static_cast<u8*>(SMReAlloc(this->data, width*height));
26 }
27
28 bool Bitmap::isValid() const
29 {

Callers 3

reqUnitsInitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected