diff options
author | Kent Mein <mein@cs.umn.edu> | 2005-01-03 22:53:04 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2005-01-03 22:53:04 +0300 |
commit | 3bbc65a5f418e7b9658ef791518e5b9872745d29 (patch) | |
tree | 262b35502d49731ce9f1021583a49cf9a297bd46 /source/blender/imbuf/intern/rectop.c | |
parent | 40813b301aff7c1cb1c574f0f6570e05a5ca5eed (diff) |
This is a pretty lame commit but here it is:
I just fixed indentation (replaced spaces with tabs where needed) and removed
#include config.h stuff from the above files.
Kent
Diffstat (limited to 'source/blender/imbuf/intern/rectop.c')
-rw-r--r-- | source/blender/imbuf/intern/rectop.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/source/blender/imbuf/intern/rectop.c b/source/blender/imbuf/intern/rectop.c index 60983bdff1e..a694fca862f 100644 --- a/source/blender/imbuf/intern/rectop.c +++ b/source/blender/imbuf/intern/rectop.c @@ -32,10 +32,6 @@ * $Id$ */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #ifdef WIN32 #include "BLI_winstuff.h" #endif @@ -99,22 +95,22 @@ void IMB_rectop(struct ImBuf *dbuf, tmp = dbuf->x - destx; if (width > tmp) width = tmp; - tmp = dbuf->y - desty; + tmp = dbuf->y - desty; if (height > tmp) height = tmp; drect = dbuf->rect + desty * dbuf->x + destx; destx = dbuf->x; if (sbuf){ - tmp = sbuf->x - srcx; + tmp = sbuf->x - srcx; if (width > tmp) width = tmp; - tmp = sbuf->y - srcy; + tmp = sbuf->y - srcy; if (height > tmp) height = tmp; if (width <= 0) return; if (height <= 0) return; - srect = sbuf->rect; + srect = sbuf->rect; srect += srcy * sbuf->x; srect += srcx; srcx = sbuf->x; @@ -134,10 +130,8 @@ void IMB_rectop(struct ImBuf *dbuf, } -void IMB_rectoptot(struct ImBuf *dbuf, - struct ImBuf *sbuf, - void (*operation)(unsigned int *, unsigned int*, int, int), - int value) +void IMB_rectoptot(struct ImBuf *dbuf, struct ImBuf *sbuf, + void (*operation)(unsigned int *, unsigned int*, int, int), int value) { IMB_rectop(dbuf,sbuf,0,0,0,0,32767,32767,operation, value); } |