diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2016-07-01 08:48:22 +0300 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2016-07-01 08:48:22 +0300 |
commit | 09b143c5b00c6836b6ad97783ea4283ea69afda4 (patch) | |
tree | a1a4ed7b036a0603b9e4dcf4cf46abd5f6e37d0a | |
parent | 6fbd8adc6a4f819c342543ab967d25742f61ede9 (diff) |
no logic change
-rw-r--r-- | include/painter.h | 2 | ||||
-rw-r--r-- | src/painter.c | 12 | ||||
-rw-r--r-- | src/painter_utils.c | 2 | ||||
-rw-r--r-- | src/painter_utils.h | 2 |
4 files changed, 10 insertions, 8 deletions
diff --git a/include/painter.h b/include/painter.h index 66d3a60..b17dd9c 100644 --- a/include/painter.h +++ b/include/painter.h @@ -1,7 +1,7 @@ /** * painter main header * - * Copyright 2015 Jay Sorg <jay.sorg@gmail.com> + * Copyright 2015-2016 Jay Sorg <jay.sorg@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/painter.c b/src/painter.c index 3bb770d..a3f7b96 100644 --- a/src/painter.c +++ b/src/painter.c @@ -1,7 +1,7 @@ /** * painter main * - * Copyright 2015 Jay Sorg <jay.sorg@gmail.com> + * Copyright 2015-2016 Jay Sorg <jay.sorg@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -268,8 +268,8 @@ painter_copy(void *handle, struct painter_bitmap *dst, int pixel; int bpp; struct painter *pt; - void *src_ptr; - void *dst_ptr; + char *src_ptr; + char *dst_ptr; pt = (struct painter *) handle; if (pt->rop == PT_ROP_S) @@ -279,7 +279,8 @@ painter_copy(void *handle, struct painter_bitmap *dst, bpp = src->format >> 24; if (painter_warp_coords(pt, &x, &y, &cx, &cy, &srcx, &srcy)) { - if ((srcy < y) || ((srcy == y) && (srcx < x))) /* straight right or down */ + /* straight right or down */ + if ((srcy < y) || ((srcy == y) && (srcx < x))) { for (jndex = cy - 1; jndex >= 0; jndex--) { @@ -308,7 +309,8 @@ painter_copy(void *handle, struct painter_bitmap *dst, } } - if ((srcy < y) || ((srcy == y) && (srcx < x))) /* straight right or down */ + /* straight right or down */ + if ((srcy < y) || ((srcy == y) && (srcx < x))) { for (jndex = cy - 1; jndex >= 0; jndex--) { diff --git a/src/painter_utils.c b/src/painter_utils.c index 55abfcd..fc7ccbb 100644 --- a/src/painter_utils.c +++ b/src/painter_utils.c @@ -1,7 +1,7 @@ /** * painter utils * - * Copyright 2015 Jay Sorg <jay.sorg@gmail.com> + * Copyright 2015-2016 Jay Sorg <jay.sorg@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/painter_utils.h b/src/painter_utils.h index 2feea5f..fd4a366 100644 --- a/src/painter_utils.h +++ b/src/painter_utils.h @@ -1,7 +1,7 @@ /** * painter utils header * - * Copyright 2015 Jay Sorg <jay.sorg@gmail.com> + * Copyright 2015-2016 Jay Sorg <jay.sorg@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |