diff options
author | camthesaxman <cameronghall@cox.net> | 2018-02-18 19:59:51 -0600 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2018-02-18 19:59:51 -0600 |
commit | daa05c1b7c5e079ad8554e88a290e07b333bd2db (patch) | |
tree | f635e307268f6e6027423369d221e2adf32b438d /src/engine/cable_car_util.c | |
parent | 2e21a867487e2187a954a351f775bd3f3a9535b1 (diff) |
remove subdirectories
Diffstat (limited to 'src/engine/cable_car_util.c')
-rw-r--r-- | src/engine/cable_car_util.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/engine/cable_car_util.c b/src/engine/cable_car_util.c deleted file mode 100644 index 02bfbc195..000000000 --- a/src/engine/cable_car_util.c +++ /dev/null @@ -1,47 +0,0 @@ -#include "global.h" -#include "cable_car_util.h" - -// static types - -// static declarations - -// rodata - -// text - -void CableCarUtil_FillWrapped(void *dest, u16 value, u8 left, u8 top, u8 width, u8 height) -{ - u8 i; - u8 j; - u8 x; - u8 y; - - for (i = 0, y = top; i < height; i++) - { - for (x = left, j = 0; j < width; j++) - { - *(u16 *)&((u8 *)dest)[y * 64 + x * 2] = value; - x = (x + 1) % 32; - } - y = (y + 1) % 32; - } -} - -void CableCarUtil_CopyWrapped(void *dest, const u16 *src, u8 left, u8 top, u8 width, u8 height) -{ - u8 i; - u8 j; - u8 x; - u8 y; - const u16 *_src; - - for (i = 0, _src = src, y = top; i < height; i++) - { - for (x = left, j = 0; j < width; j++) - { - *(u16 *)&((u8 *)dest)[y * 64 + x * 2] = *_src++; - x = (x + 1) % 32; - } - y = (y + 1) % 32; - } -} |