From 6e7b3abc34267f351810bb7b01dafa9586cdd9c8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 16 Aug 2012 15:10:55 +0200 Subject: ios: Use fz_max and fz_min inline functions instead of MAX/MIN macros. --- ios/main.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ios') diff --git a/ios/main.m b/ios/main.m index 70cd3712..0f80505d 100644 --- a/ios/main.m +++ b/ios/main.m @@ -189,7 +189,7 @@ static CGSize fitPageToScreen(CGSize page, CGSize screen) { float hscale = screen.width / page.width; float vscale = screen.height / page.height; - float scale = MIN(hscale, vscale); + float scale = fz_min(hscale, vscale); hscale = floorf(page.width * scale) / page.width; vscale = floorf(page.height * scale) / page.height; return CGSizeMake(hscale, vscale); @@ -1065,7 +1065,7 @@ static UIImage *renderTile(struct document *doc, int number, CGSize screenSize, - (void) viewWillLayoutSubviews { CGSize size = [canvas frame].size; - int max_width = MAX(width, size.width); + int max_width = fz_max(width, size.width); width = size.width; height = size.height; -- cgit v1.2.3