Commit Graph

18 Commits

Author SHA1 Message Date
Rangi be7a5e09b5 Factor out usage_exit into into tools/common.h 2021-09-21 17:37:43 -04:00
Rangi 2691c9f5c8 Small refactoring and optimization to tools/gfx.c 2021-09-21 17:16:14 -04:00
Rangi 314c5fc9ab Rewrite tools/gfx.c 2021-09-20 21:44:41 -04:00
Rangi 313deab552 Rewrite tool png_dimensions.c, and start using common.h more 2021-09-02 00:21:10 -04:00
Rangi 022f9e6af1 Reformat gfx/trade/game_boy.png and fix tools/gfx --preserve 2020-06-28 19:56:06 -04:00
Rangi 865d623846 Remove unused nonmatching files for electro_ball.png and sgb_border.bin
electro_ball.png needed to preserve one whitespace tile which tools/gfx would normally remove. Preserving a list of tile indexes has been added as a general feature to tools/gfx.

sgb_border.bin needed to remove the 20x18 center area of $00 bytes. This is achievable with the standard tr utility.
2020-04-08 12:14:37 -04:00
Lior Halphon 2af6c63253 Fix bad round, memset VLA 2020-04-02 22:02:20 +03:00
Lior Halphon 79f3f3f4d5 Indentation conventions, use C99 variable length arrays 2020-04-02 21:10:20 +03:00
Lior Halphon 7878dd6d4b Fix several out-of-bound reads; fix a memory leak 2020-04-02 20:59:19 +03:00
yenatch 40305f205e fix unused fread return value warnings 2017-12-28 01:25:25 -05:00
yenatch 59a27d5907 tools/gfx: Replace --width with --png 2017-09-24 01:07:02 -04:00
yenatch 1f8bc7772b Fix insecure fprintf 2017-06-24 19:32:35 -04:00
yenatch 80f7477c33 Fix tools/gfx 2017-06-24 16:42:44 -04:00
yenatch 41ae3610f6 pngs in gfx/fx
- gave up on wind.png
- add --remove-yflip
2017-06-24 00:47:55 -04:00
yenatch 1f81d1851f pngs in gfx/ 2017-06-23 19:56:24 -04:00
yenatch bcb58c2939 Add --interleave to tools/gfx and refactor.
For images composed of 8x16 sprites.

The width has to be manually passed in. If this were an rgbgfx feature this would not be necessary.

Fixes 647f9b4452
2017-06-21 23:49:45 -04:00
yenatch a71005fafa Remove debug statement from tools/gfx 2017-06-18 00:54:02 -04:00
yenatch cd3d125861 Add `gfx` tool for graphics postprocessing 2017-06-18 00:09:25 -04:00