GRIM: Init the value of Bitmap::_colorFormat.
This commit is contained in:
parent
59be5e8772
commit
17c0eeeb56
1 changed files with 3 additions and 1 deletions
|
@ -176,9 +176,11 @@ BitmapData::BitmapData(const char *data, int w, int h, int bpp, const char *fnam
|
|||
_texIds = NULL;
|
||||
_bpp = bpp;
|
||||
_hasTransparency = false;
|
||||
_colorFormat = BM_RGB565;
|
||||
_data = new char *[_numImages];
|
||||
_data[0] = new char[_bpp / 8 * _width * _height];
|
||||
memcpy(_data[0], data, _bpp / 8 * _width * _height);
|
||||
|
||||
g_driver->createBitmap(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue