w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 2a5da1a16399344fa348a3842216501659d59e68
parent f64cca2fbec48d2184e7bb5e794afeff0f30fbda
Author: ukai <ukai>
Date:   Fri, 15 Nov 2002 15:57:16 +0000

fix indent

Diffstat:
Mfile.c | 6++++--
Mimage.c | 12++++++------
2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/file.c b/file.c @@ -4953,8 +4953,10 @@ HTMLlineproc2body(Buffer *buf, Str (*feed) (), int llimit) image->url = parsedURL2Str(&u)->ptr; image->ext = filename_extension(u.file, TRUE); image->cache = NULL; - image->width = (w > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE: w; - image->height = (h > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE: h; + image->width = + (w > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE : w; + image->height = + (h > MAX_IMAGE_SIZE) ? MAX_IMAGE_SIZE : h; image->xoffset = xoffset; image->yoffset = yoffset; image->y = currentLn(buf) - top; diff --git a/image.c b/image.c @@ -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;