]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/quartz/quartzloader.cpp
Rename Image::Data::data to pixels
[libs/gui.git] / source / graphics / quartz / quartzloader.cpp
index 2821190a465f880f3cedbf83005779d431b2f511..5493e45bace18709d00084fbc69d4a5ab0a6e6ae 100644 (file)
@@ -112,10 +112,10 @@ void QuartzLoader::load(Image::Data &data)
 
                CGDataProviderRef dp = CGImageGetDataProvider(image);
                CFDataRef image_data = CGDataProviderCopyData(dp);
-               data.data = new char[data.height*data.stride];
+               data.pixels = new char[data.height*data.stride];
                unsigned offset = (alpha==kCGImageAlphaNoneSkipFirst);
                CFRange range = CFRangeMake(offset, CFDataGetLength(image_data)-offset);
-               CFDataGetBytes(image_data, range, reinterpret_cast<UInt8 *>(data.data));
+               CFDataGetBytes(image_data, range, reinterpret_cast<UInt8 *>(data.pixels));
                CFRelease(image_data);
 
                CFRelease(image);