Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mtehver committed Jul 30, 2021
1 parent fe19994 commit dc4f0f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/native/utils/BitmapUtils.mm
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

std::vector<std::uint8_t> bitmapData(width * height * 4);
CFUniquePtr<CGColorSpaceRef> colorSpace(CGColorSpaceCreateDeviceRGB(), CGColorSpaceRelease);
CFUniquePtr<CGContextRef> context(CGBitmapContextCreate(bitmapData.data(), width, height, 8, width * 4, colorSpace, kCGBitmapByteOrder32Big | kCGImageAlphaPremultipliedLast, CGContextRelease);
CFUniquePtr<CGContextRef> context(CGBitmapContextCreate(bitmapData.data(), width, height, 8, width * 4, colorSpace, kCGBitmapByteOrder32Big | kCGImageAlphaPremultipliedLast), CGContextRelease);
if (!context) {
Log::Errorf("BitmapUtils::CreateBitmapFromUIImage: Failed to create bitmap context");
return std::shared_ptr<Bitmap>();
Expand Down

0 comments on commit dc4f0f7

Please sign in to comment.