GRIM: Init the value of Bitmap::_colorFormat.

This commit is contained in:
Giulio Camuffo 2011-05-17 17:38:52 +02:00
parent 59be5e8772
commit 17c0eeeb56

View file

@ -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);
}