From 875c34f259cfbd07ab25b56927fbb999b0de8150 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 15 Nov 2002 15:57:16 +0000 Subject: fix indent --- image.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'image.c') diff --git a/image.c b/image.c index 4868900..2c785ba 100644 --- a/image.c +++ b/image.c @@ -1,4 +1,4 @@ -/* $Id: image.c,v 1.18 2002/11/15 15:56:36 ukai Exp $ */ +/* $Id: image.c,v 1.19 2002/11/15 15:57:16 ukai Exp $ */ #include "fm.h" #include @@ -630,16 +630,16 @@ getImageSize(ImageCache * cache) if (h == 0) h = 1; if (cache->width < 0 && cache->height < 0) { - cache->width = (w > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE: w; - cache->height = (h > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE: h; + cache->width = (w > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE : w; + cache->height = (h > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE : h; } else if (cache->width < 0) { - int tmp = (int)((double)cache->height * w / h + 0.5); - cache->width = (tmp > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE: tmp; + int tmp = (int)((double)cache->height * w / h + 0.5); + cache->width = (tmp > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE : tmp; } else if (cache->height < 0) { - int tmp = (int)((double)cache->width * h / w + 0.5); - cache->height = (tmp > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE: tmp; + int tmp = (int)((double)cache->width * h / w + 0.5); + cache->height = (tmp > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE : tmp; } if (cache->width == 0) cache->width = 1; -- cgit v1.2.3