LRFLEW
e5ff7412e4
Refactor/Improve String and Path Handling
2016-10-09 15:29:58 -05:00
Michał Janiszewski
fa4c5ace25
Plug memory leak in cmdline_sprite.c
2016-10-08 22:32:33 +02:00
Duncan
00e2d44264
Refactor sprite functions
2016-09-14 18:22:37 +01:00
Ted John
8cf7e87b5c
Fix many warnings for x64
2016-08-27 23:32:15 +01:00
Ted John
68fc6371ae
Fix building g2.dat on x64
2016-08-27 14:05:25 +01:00
Michał Janiszewski
91e04282ee
Fix pointer types for 64 bit
2016-08-03 23:33:12 +02:00
Michał Janiszewski
a6d0e6916e
Fix function definitions to match their declarations
...
This makes sure every function is properly declared, which includes
proper `extern` wrappers.
2016-07-14 14:11:49 +02:00
Michał Janiszewski
1508e49a28
Change macro to assert_struct_size
2016-06-03 11:29:50 +02:00
Michał Janiszewski
60630b9ad7
Drop PACKED attribute
2016-06-03 10:55:21 +02:00
Michał Janiszewski
df3030e4a9
Provide static_assert for hard-coded struct sizes.
2016-06-03 10:55:21 +02:00
Michał Janiszewski
3907fcd9d2
Explicitly pack structs
2016-06-03 10:55:21 +02:00
janisozaur
ca430e1b23
Drop unused variables ( #3586 )
2016-05-13 18:21:58 +01:00
janisozaur
658e877955
Name all the typdef-ed structs ( #3581 )
2016-05-12 22:57:40 +01:00
janisozaur
68bad6505c
Add and correct licence headers to all sources ( #3108 )
2016-05-04 18:24:41 +01:00
Michał Janiszewski
3bf1e0e06d
Rename safe_strncpy to safe_strcpy
2016-01-18 20:49:52 +01:00
IntelOrca
e9d222fdd3
new-argparse: finish new argparse integration and clean up
2016-01-10 22:50:31 +00:00
IntelOrca
68a600f679
finish converting last lodepng calls to libpng
2015-12-30 13:36:14 +00:00
IntelOrca
cabd0fdc3a
use image_io_png_write in cmdline_sprite
2015-12-30 13:36:14 +00:00
Michał Janiszewski
a5b465fad1
Fix some compiler warnings
2015-12-14 22:52:27 +01:00
IntelOrca
5c3bcda744
fix wrong output steam in cmdline_sprite
2015-12-13 00:28:25 +00:00
Michał Janiszewski
e885056229
Fix exit code handling, sprite generation
...
Make sprite generation not start UI
2015-11-14 17:43:03 +01:00
Michał Janiszewski
60f7d29c2e
Zero the buffer for g2.dat
...
Some leftover data caused the g2.dat generated on different platforms to
have mismatching cheksums. Zeroing the buffer makes them
checksum-identical.
2015-11-13 14:43:08 +01:00
Michał Janiszewski
6723f51087
Keep track of address returned by malloc to free it correctly
...
When doing g2 generation on Linux, src variable was not modified in the
same way as on Windows, which caused free() on a pointer that was not
malloc()ed.
This fixes #2219 .
2015-11-12 14:11:22 +01:00
Michał Janiszewski
9284930d7e
Add safe_strncpy function
...
safe_strncpy is similar to strncpy, but makes sure buffer is
null-terminated. Update most of project to use this updated function to
prevent illegal memory accesses.
2015-10-30 16:01:00 +01:00
Michał Janiszewski
8e45cccb7a
Minor fixes
...
Includes (mostly) type fixes, dead code removal, signed vs unsigned
comparison fixes, memory leaks removal.
2015-10-21 08:47:09 +02:00
Michał Janiszewski
7d0ce00bab
Strip all whitespace
2015-10-20 20:48:51 +02:00
Michał Janiszewski
52252f82b3
assorted fixes
2015-09-07 20:51:21 +02:00
IntelOrca
bea74ee261
make all file IO utf8 compatible, fixes #1847
2015-08-29 13:13:23 +01:00
Michał Janiszewski
7afb7e2dfd
Portability fixes
2015-08-04 19:31:21 +02:00
IntelOrca
cac0f2ab52
upgrade to VS2015 compiler
2015-08-03 23:16:30 +01:00
IntelOrca
899c563d35
improve sprite compiler
2015-06-03 03:11:54 +01:00
Thomas den Hollander
2f6bff4def
#include fix
2015-06-02 13:37:18 +02:00
Thomas
df25e7a15a
Add command 'exportall' to sprite tool
2015-06-02 12:50:16 +02:00
IntelOrca
f827234dc8
fix sprite compile issue, entry offsets were not updated when data was reallocated.
2015-06-02 00:53:51 +01:00
Thomas
a3368c4a54
Fix issue
2015-06-01 15:14:15 +02:00
Thomas
f262ef977d
Fix warning and remove debugging
2015-06-01 14:04:35 +02:00
Thomas
c266c21c9c
Fix overflow issue
2015-06-01 13:19:40 +02:00
Thomas
55456559bb
Added dithering and closest pixel conversion for sprite tool
2015-05-31 20:35:40 +02:00
IntelOrca
1fdf1f57f7
add zoom button images to viewport window
2015-05-31 00:20:42 +01:00
IntelOrca
101fed0dd9
refactor g1Elements pointer and implement sub_68371D
2015-05-28 00:17:22 +01:00
Robert Jordan
ac17b52139
g2.dat is now updated every build.
...
data/g2.dat is now ignored.
2015-05-20 14:20:24 -04:00
Robert Jordan
0a3d2b949c
sprite build now uses parameters
...
Added batch file to build g2.dat
2015-05-20 13:17:08 -04:00
Robert Jordan
c7e3639663
Sprite build command
...
build uses ../../data/g2.dat and all numbered images in
../../resources/g2/.
No other parameters needed.
Also changed speed button hyper arrows to support game speeds inbetween
4 and 8.
2015-05-20 11:52:40 -04:00
IntelOrca
c1260fc11f
add command line sprite editor and additional custom graphics (g2.dat)
2015-05-19 00:26:31 +01:00