| 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 | { |
no outgoing calls
no test coverage detected