Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a62973

Browse files
committed
Use Objective C 1.0 [gs]etter
1 parent 1f1925c commit 0a62973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_macosx.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3554,7 +3554,7 @@ static void _data_provider_release(void* info, const void* data, size_t size)
35543554

35553555
NSBitmapImageRep* rep = [NSBitmapImageRep imageRepWithData:data];
35563556

3557-
NSSize pxlSize = NSMakeSize(rep.pixelsWide, rep.pixelsHigh);
3557+
NSSize pxlSize = NSMakeSize([rep pixelsWide], [rep pixelsHigh]);
35583558
NSSize newSize = NSMakeSize(72.0 * pxlSize.width / dpi, 72.0 * pxlSize.height / dpi);
35593559

35603560
[rep setSize:newSize];

0 commit comments

Comments
 (0)