X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fbmploader.cpp;h=39629f714e776e3a8d1bfa954fe60007c1a3be3f;hb=2ebdf45974a0a7649b3488f9da4b8cf90a1db584;hp=fa23182883996164a73611c17b1416893aef0a62;hpb=e1f6dad834fb043f22a57dbaa65016ee1f65a43a;p=libs%2Fgui.git diff --git a/source/graphics/bmploader.cpp b/source/graphics/bmploader.cpp index fa23182..39629f7 100644 --- a/source/graphics/bmploader.cpp +++ b/source/graphics/bmploader.cpp @@ -44,7 +44,7 @@ bool BmpLoader::detect(const std::string &sig) return !sig.compare(0, sizeof(bmp_sig), bmp_sig, sizeof(bmp_sig)); } -void BmpLoader::load(Image::Data &data) +void BmpLoader::load_(Image::Data &data) { char bm_header[14]; read_full(io, bm_header+sig_bytes, sizeof(bm_header)-sig_bytes); @@ -92,16 +92,16 @@ void BmpLoader::load(Image::Data &data) skip -= size; } - data.data = new char[data.stride*data.height]; + data.pixels = new char[data.stride*data.height]; if(height<0) { for(unsigned y=0; y