Giter Site home page Giter Site logo

softlk-tools's People

Contributors

captain4lk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

softlk-tools's Issues

make: *** [makefile:6: SLK_img2pix] Error 1 in Linux

Greetings. I'm having an issue building img2pixel on Manjaro Linux (Arch-based distro). I've successfully built and installed SoftLK-lib without issue. Attempting to build img2pixel:
git clone https://github.com/Captain4LK/SoftLK-tools.git
cd SoftLK-tools/SLK_img2pixel/bin/unix/
make

Results in this error: make: *** [makefile:6: SLK_img2pix] Error 1

That line 6 of the makefile in question is: $(CC) -o SLK_img2pix $^ $(CFLAGS)

Here is the terminal build log: img2pixel_terminalbuildlog.txt

You will see many undefined reference to SLK_gui_#### messages before it fails.
I have the build dependencies installed and have built this a few months ago without issues and I'm not sure what is going on now. My current specs are Manjaro Linux KDE stable branch, Ryzen 3900x 12-core, and gcc version 11.1.0 (GCC).

I know GCC versions 10+ are stricter than the previous versions, but I'm not sure if this has anything to do with this issue.

Asking for help to reduce container window size.

I'm trying to tidy up the excess window size to take up less real estate for my personal use. So far I have modified SLK_img2pixel/src/gui.c lines 268 & 277

Line 268: preview = SLK_gui_window_create(386,1,260,286);
Line 277: settings = SLK_gui_window_create(1,1,384,296);

I have successfully gotten results I like:
image
Could you please point me to the bit of code that defines the overall window container size? I haven't been able to find it. I want to make it smaller to fit around the Settings & Preview windows tightly and tidy up all the wasted space. Thanks!

img2pixel gui seems to not like texture names with multiple periods when batching converting images.

img2pixel seems to not like texture names with multiple periods in them when batch converting whole directories. I have a dir with files named like this:

st.tms[0].png
st.tms[1].png
st.tms[2].png
st.tms[3].png
st.tms[4].png
st.tms[5].png

Writing them to a sub-DIR named slk. It seems to be treating the 1st period as the end of file, writes 1 file converted and correct, then writes a transparent 1x1 pixel file named slk.png then seems to fail to write anything else after because I think it sees it as the same name(my best guess).

This is in Linux.

slk-img2pixel-win.zip is flagged as malicious by MaxSecure in Virustotal

Malwarebytes and MaxSecure flag slk-img2pixel-win.zip as malicious when scanned with Virustotal.
Link here: https://www.virustotal.com/gui/file/865980658ac9145c51fde72fc150bdf9745c38533bbeae1b3d99877e93e70aac
(Edit: Malwarebytes doesn't flag it as malicious anymore)

Also I wonder if the previous versions have the same issue, can you re-release them for download, and also provide checksums for each version?

(This is the my first issue submission, I hope I'm doing this right)

Thanks in advance.

I can't compile

I can't compile:
Ubuntu 20.04
ryzen 5 1600
nvidia gt 1030
ram 16 gb

caire@caire-A320MH:/Downloads/SoftLK/SoftLK-tools-master/SLK_img2pixel$ sh linux.sh
unspecified target, need either gui,cmd or video
caire@caire-A320MH:
/Downloads/SoftLK/SoftLK-tools-master/SLK_img2pixel$ sh linux.sh video
utility.c assets.c gui.c image2pixel.c ../external/tinyfiledialogs.c main_video.c
gcc: error: main_video.c: Arquivo ou diretório inexistente
caire@caire-A320MH:/Downloads/SoftLK/SoftLK-tools-master/SLK_img2pixel$ sh linux.sh cmd
utility.c assets.c gui.c image2pixel.c ../external/tinyfiledialogs.c main_cmd.c
In file included from utility.c:17:
../external/stb_image.h: In function ‘stbi__zhuffman_decode_slowpath’:
../external/stb_image.h:4123:10: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
4123 | if (b >= sizeof (z->size)) return -1; // some data was corrupt somewhere!
| ^

utility.c: In function ‘dir_output_select’:
utility.c:294:28: warning: unused parameter ‘dither_mode’ [-Wunused-parameter]
294 | void dir_output_select(int dither_mode, int sample_mode, int distance_mode, int scale_mode, int width, int height, SLK_Palette *pal)
| ~~~~^~~~~~~~~~~
utility.c:294:45: warning: unused parameter ‘sample_mode’ [-Wunused-parameter]
294 | void dir_output_select(int dither_mode, int sample_mode, int distance_mode, int scale_mode, int width, int height, SLK_Palette *pal)
| ~~~~^~~~~~~~~~~
utility.c:294:62: warning: unused parameter ‘distance_mode’ [-Wunused-parameter]
294 | void dir_output_select(int dither_mode, int sample_mode, int distance_mode, int scale_mode, int width, int height, SLK_Palette *pal)
| ~~~~^~~~~~~~~~~~~
In file included from image2pixel.c:18:
../external/HLH_json.h: In function ‘json5__parse_string’:
../external/HLH_json.h:634:66: warning: unused parameter ‘err_code’ [-Wunused-parameter]
634 | static char *json5__parse_string(HLH_json5 *obj, char *p, char **err_code)
| ~~~~~~~^~~~~~~~
In file included from image2pixel.c:18:
../external/HLH_json.h: In function ‘json5_parse’:
../external/HLH_json.h:894:56: warning: unused parameter ‘flags’ [-Wunused-parameter]
894 | static char *json5_parse(HLH_json5 *root, char *p, int flags)
| ~~~~^~~~~
In file included from image2pixel.c:18:
../external/HLH_json.h: In function ‘HLH_json_parse_file’:
../external/HLH_json.h:156:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
156 | fread(r->data,r->data_size,1,f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../external/HLH_json.h: In function ‘HLH_json_parse_file_stream’:
../external/HLH_json.h:175:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
175 | fread(r->data,r->data_size,1,f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from main_cmd.c:16:
../headers/libSLK.h: In function ‘SLK_mouse_get_layer_pos’:
../headers/libSLK.h:1807:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1807 | if(index<layer_count)
| ^
In file included from main_cmd.c:16:
../headers/libSLK.h: In function ‘SLK_layer_create’:
../headers/libSLK.h:1881:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1881 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_activate’:
../headers/libSLK.h:1917:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1917 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_set_palette’:
../headers/libSLK.h:1927:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1927 | if(index>=layer_count||layers[index].type!=SLK_LAYER_PAL)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_set_tint’:
../headers/libSLK.h:1939:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1939 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_set_dynamic’:
../headers/libSLK.h:1947:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1947 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_set_pos’:
../headers/libSLK.h:1955:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1955 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_set_scale’:
../headers/libSLK.h:1966:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1966 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_set_size’:
../headers/libSLK.h:1974:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1974 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_get_size’:
../headers/libSLK.h:2018:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2018 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_set_current’:
../headers/libSLK.h:2041:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2041 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_get_resized’:
../headers/libSLK.h:2062:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2062 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_get’:
../headers/libSLK.h:2072:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2072 | if(index>=layer_count)
| ^~
In file included from ../headers/libSLK.h:2378,
from main_cmd.c:16:
../headers/../external/cute_png.h: In function ‘cp_stored’:
../headers/../external/cute_png.h:433:21: warning: comparison of promoted unsigned with unsigned [-Wsign-compare]
433 | CUTE_PNG_CHECK(LEN == (uint16_t)(NLEN), "Failed to find LEN and NLEN as complements within stored (uncompressed) stream.");
| ^

../headers/../external/cute_png.h:244:41: note: in definition of macro ‘CUTE_PNG_CHECK’
244 | #define CUTE_PNG_CHECK(X, Y) do { if (!(X)) { cp_error_reason = Y; CUTE_PNG_FAIL(); } } while (0)
| ^
In file included from ../headers/libSLK.h:2378,
from main_cmd.c:16:
../headers/../external/cute_png.h: In function ‘cp_save_png’:
../headers/../external/cute_png.h:785:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
785 | s.fp = fp;
| ^
../headers/../external/cute_png.h:800:17: warning: passing argument 1 of ‘fseek’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
800 | CUTE_PNG_FSEEK(fp, dataPos, CUTE_PNG_SEEK_SET);
| ^

In file included from main_cmd.c:12:
/usr/include/stdio.h:684:25: note: expected ‘FILE *’ {aka ‘struct _IO_FILE *’} but argument is of type ‘const FILE *’ {aka ‘const struct _IO_FILE *’}
684 | extern int fseek (FILE *__stream, long int __off, int __whence);
| ~~~~~~^~~~~~~~
In file included from ../headers/libSLK.h:2378,
from main_cmd.c:16:
../headers/../external/cute_png.h:803:24: warning: passing argument 1 of ‘ferror’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
803 | err = CUTE_PNG_FERROR(fp);
| ^~
In file included from main_cmd.c:12:
/usr/include/stdio.h:761:26: note: expected ‘FILE *’ {aka ‘struct _IO_FILE *’} but argument is of type ‘const FILE *’ {aka ‘const struct _IO_FILE *’}
761 | extern int ferror (FILE *__stream) __THROW __wur;
| ~~~~~~^~~~~~~~
In file included from ../headers/libSLK.h:2378,
from main_cmd.c:16:
../headers/../external/cute_png.h: In function ‘cp_default_save_atlas’:
../headers/../external/cute_png.h:1667:29: warning: passing argument 1 of ‘cp_save_png’ from incompatible pointer type [-Wincompatible-pointer-types]
1667 | CUTE_PNG_CHECK(cp_save_png(out_path_image, atlas), "failed to save atlas image to disk");
| ^~~~~~~~~~~~~~
| |
| const char *
../headers/../external/cute_png.h:244:41: note: in definition of macro ‘CUTE_PNG_CHECK’
244 | #define CUTE_PNG_CHECK(X, Y) do { if (!(X)) { cp_error_reason = Y; CUTE_PNG_FAIL(); } } while (0)
| ^
In file included from ../headers/libSLK.h:2378,
from main_cmd.c:16:
../headers/../external/cute_png.h:780:29: note: expected ‘const FILE *’ {aka ‘const struct _IO_FILE *’} but argument is of type ‘const char *’
780 | int cp_save_png(const FILE fp, const cp_image_t img)
| ~~~~~~~~~~~~^~
In file included from main_cmd.c:16:
../headers/libSLK.h: In function ‘backend_handle_events’:
../headers/libSLK.h:2505:74: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
2505 | f(text_input_active&&strlen(text_input)+strlen(event.text.text)<text_input_max)
| ^

../headers/libSLK.h: In function ‘backend_setup’:
../headers/libSLK.h:2594:81: warning: unused parameter ‘fullscreen’ [-Wunused-parameter]
2594 | int width, int height, int layer_num, const char *title, int fullscreen, int scale, int resizable)
| ~~~~^~~~~~~~~~

In file included from main_cmd.c:16:
../headers/libSLK.h: In function ‘backend_create_layer’:
../headers/libSLK.h:2762:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2762 | if(index>=layer_count)
| ^~
main_cmd.c: In function ‘print_help’:
main_cmd.c:132:28: warning: unused parameter ‘argc’ [-Wunused-parameter]
132 | static void print_help(int argc, char **argv)
| ~~~~^~~~
In file included from ../headers/libSLK.h:2378,
from main_cmd.c:16:
../headers/../external/cute_png.h: In function ‘cp_read_file_to_memory’:
../headers/../external/cute_png.h:222:25: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
222 | #define CUTE_PNG_FREAD fread
| ^
../headers/../external/cute_png.h:359:3: note: in expansion of macro ‘CUTE_PNG_FREAD’
359 | CUTE_PNG_FREAD(data, sizeNum, 1, fp);
| ^~~~~~~~~~~~~~
In file included from ../headers/libSLK.h:2384,
from main_cmd.c:16:
../headers/../external/HLH_slk.h: In function ‘HLH_slk_image_load_file’:
../headers/../external/HLH_slk.h:86:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
86 | fread(buffer,size,1,f);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from main_cmd.c:16:
../headers/libSLK.h: In function ‘backend_load_rgb_file’:
../headers/libSLK.h:3214:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
3214 | fread(data,size,1,f);
| ^~~~~~~~~~~~~~~~~~~~
../headers/libSLK.h: In function ‘backend_load_pal_file’:
../headers/libSLK.h:3296:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
3296 | fread(data,size,1,f);
| ^~~~~~~~~~~~~~~~~~~~
caire@caire-A320MH:/Downloads/SoftLK/SoftLK-tools-master/SLK_img2pixel$ sh linux.sh gui
In file included from utility.c:17:
../external/stb_image.h: In function ‘stbi__zhuffman_decode_slowpath’:
../external/stb_image.h:4123:10: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
4123 | if (b >= sizeof (z->size)) return -1; // some data was corrupt somewhere!
| ^

utility.c: In function ‘dir_output_select’:
utility.c:294:28: warning: unused parameter ‘dither_mode’ [-Wunused-parameter]
294 | void dir_output_select(int dither_mode, int sample_mode, int distance_mode, int scale_mode, int width, int height, SLK_Palette *pal)
| ~~~~^~~~~~~~~~~
utility.c:294:45: warning: unused parameter ‘sample_mode’ [-Wunused-parameter]
294 | void dir_output_select(int dither_mode, int sample_mode, int distance_mode, int scale_mode, int width, int height, SLK_Palette *pal)
| ~~~~^~~~~~~~~~~
utility.c:294:62: warning: unused parameter ‘distance_mode’ [-Wunused-parameter]
294 | void dir_output_select(int dither_mode, int sample_mode, int distance_mode, int scale_mode, int width, int height, SLK_Palette *pal)
| ~~~~^~~~~~~~~~~~~
In file included from image2pixel.c:18:
../external/HLH_json.h: In function ‘json5__parse_string’:
../external/HLH_json.h:634:66: warning: unused parameter ‘err_code’ [-Wunused-parameter]
634 | static char *json5__parse_string(HLH_json5 *obj, char *p, char **err_code)
| ~~~~~~~^~~~~~~~
In file included from image2pixel.c:18:
../external/HLH_json.h: In function ‘json5_parse’:
../external/HLH_json.h:894:56: warning: unused parameter ‘flags’ [-Wunused-parameter]
894 | static char *json5_parse(HLH_json5 *root, char *p, int flags)
| ~~~~^~~~~
In file included from image2pixel.c:18:
../external/HLH_json.h: In function ‘HLH_json_parse_file’:
../external/HLH_json.h:156:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
156 | fread(r->data,r->data_size,1,f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../external/HLH_json.h: In function ‘HLH_json_parse_file_stream’:
../external/HLH_json.h:175:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
175 | fread(r->data,r->data_size,1,f);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from main.c:14:
../headers/libSLK.h: In function ‘SLK_mouse_get_layer_pos’:
../headers/libSLK.h:1807:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1807 | if(index<layer_count)
| ^
In file included from main.c:14:
../headers/libSLK.h: In function ‘SLK_layer_create’:
../headers/libSLK.h:1881:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1881 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_activate’:
../headers/libSLK.h:1917:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1917 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_set_palette’:
../headers/libSLK.h:1927:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1927 | if(index>=layer_count||layers[index].type!=SLK_LAYER_PAL)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_set_tint’:
../headers/libSLK.h:1939:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1939 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_set_dynamic’:
../headers/libSLK.h:1947:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1947 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_set_pos’:
../headers/libSLK.h:1955:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1955 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_set_scale’:
../headers/libSLK.h:1966:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1966 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_set_size’:
../headers/libSLK.h:1974:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
1974 | if(index<layer_count)
| ^
../headers/libSLK.h: In function ‘SLK_layer_get_size’:
../headers/libSLK.h:2018:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2018 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_set_current’:
../headers/libSLK.h:2041:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2041 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_get_resized’:
../headers/libSLK.h:2062:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2062 | if(index>=layer_count)
| ^~
../headers/libSLK.h: In function ‘SLK_layer_get’:
../headers/libSLK.h:2072:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2072 | if(index>=layer_count)
| ^~
In file included from ../headers/libSLK.h:2378,
from main.c:14:
../headers/../external/cute_png.h: In function ‘cp_stored’:
../headers/../external/cute_png.h:433:21: warning: comparison of promoted unsigned with unsigned [-Wsign-compare]
433 | CUTE_PNG_CHECK(LEN == (uint16_t)(NLEN), "Failed to find LEN and NLEN as complements within stored (uncompressed) stream.");
| ^

../headers/../external/cute_png.h:244:41: note: in definition of macro ‘CUTE_PNG_CHECK’
244 | #define CUTE_PNG_CHECK(X, Y) do { if (!(X)) { cp_error_reason = Y; CUTE_PNG_FAIL(); } } while (0)
| ^
In file included from ../headers/libSLK.h:2378,
from main.c:14:
../headers/../external/cute_png.h: In function ‘cp_save_png’:
../headers/../external/cute_png.h:785:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
785 | s.fp = fp;
| ^
../headers/../external/cute_png.h:800:17: warning: passing argument 1 of ‘fseek’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
800 | CUTE_PNG_FSEEK(fp, dataPos, CUTE_PNG_SEEK_SET);
| ^

In file included from ../headers/libSLK.h:13,
from main.c:14:
/usr/include/stdio.h:684:25: note: expected ‘FILE *’ {aka ‘struct _IO_FILE *’} but argument is of type ‘const FILE *’ {aka ‘const struct _IO_FILE *’}
684 | extern int fseek (FILE *__stream, long int __off, int __whence);
| ~~~~~~^~~~~~~~
In file included from ../headers/libSLK.h:2378,
from main.c:14:
../headers/../external/cute_png.h:803:24: warning: passing argument 1 of ‘ferror’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
803 | err = CUTE_PNG_FERROR(fp);
| ^~
In file included from ../headers/libSLK.h:13,
from main.c:14:
/usr/include/stdio.h:761:26: note: expected ‘FILE *’ {aka ‘struct _IO_FILE *’} but argument is of type ‘const FILE *’ {aka ‘const struct _IO_FILE *’}
761 | extern int ferror (FILE *__stream) __THROW __wur;
| ~~~~~~^~~~~~~~
In file included from ../headers/libSLK.h:2378,
from main.c:14:
../headers/../external/cute_png.h: In function ‘cp_default_save_atlas’:
../headers/../external/cute_png.h:1667:29: warning: passing argument 1 of ‘cp_save_png’ from incompatible pointer type [-Wincompatible-pointer-types]
1667 | CUTE_PNG_CHECK(cp_save_png(out_path_image, atlas), "failed to save atlas image to disk");
| ^~~~~~~~~~~~~~
| |
| const char *
../headers/../external/cute_png.h:244:41: note: in definition of macro ‘CUTE_PNG_CHECK’
244 | #define CUTE_PNG_CHECK(X, Y) do { if (!(X)) { cp_error_reason = Y; CUTE_PNG_FAIL(); } } while (0)
| ^
In file included from ../headers/libSLK.h:2378,
from main.c:14:
../headers/../external/cute_png.h:780:29: note: expected ‘const FILE *’ {aka ‘const struct _IO_FILE *’} but argument is of type ‘const char *’
780 | int cp_save_png(const FILE fp, const cp_image_t img)
| ~~~~~~~~~~~~^~
In file included from main.c:14:
../headers/libSLK.h: In function ‘backend_handle_events’:
../headers/libSLK.h:2505:74: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
2505 | if(text_input_active&&strlen(text_input)+strlen(event.text.text)<text_input_max)
| ^
../headers/libSLK.h: In function ‘backend_setup’:
../headers/libSLK.h:2594:81: warning: unused parameter ‘fullscreen’ [-Wunused-parameter]
2594 | void backend_setup(int width, int height, int layer_num, const char *title, int fullscreen, int scale, int resizable)
| ~~~~^~~~~~~~~~
In file included from main.c:14:
../headers/libSLK.h: In function ‘backend_create_layer’:
../headers/libSLK.h:2762:12: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
2762 | if(index>=layer_count)
| ^~
In file included from main.c:17:
../headers/libSLK_gui.h: In function ‘slk_gui_clip_text’:
../headers/libSLK_gui.h:209:62: warning: unused parameter ‘dst_size’ [-Wunused-parameter]
209 | static int slk_gui_clip_text(char *dst, const char *src, int dst_size, SLK_gui_rectangle area)
| ~~~~^~~~~~~~
main.c: In function ‘main’:
main.c:39:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
39 | int main(int argc, char **argv)
| ~~~~^~~~
main.c:39:27: warning: unused parameter ‘argv’ [-Wunused-parameter]
39 | int main(int argc, char **argv)
| ~~~~~~~^~~~
In file included from ../headers/libSLK.h:2378,
from main.c:14:
../headers/../external/cute_png.h: In function ‘cp_read_file_to_memory’:
../headers/../external/cute_png.h:222:25: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
222 | #define CUTE_PNG_FREAD fread
| ^
../headers/../external/cute_png.h:359:3: note: in expansion of macro ‘CUTE_PNG_FREAD’
359 | CUTE_PNG_FREAD(data, sizeNum, 1, fp);
| ^~~~~~~~~~~~~~
In file included from ../headers/libSLK.h:2384,
from main.c:14:
../headers/../external/HLH_slk.h: In function ‘HLH_slk_image_load_file’:
../headers/../external/HLH_slk.h:86:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
86 | fread(buffer,size,1,f);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from main.c:14:
../headers/libSLK.h: In function ‘backend_load_rgb_file’:
../headers/libSLK.h:3214:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
3214 | fread(data,size,1,f);
| ^~~~~~~~~~~~~~~~~~~~
../headers/libSLK.h: In function ‘backend_load_pal_file’:
../headers/libSLK.h:3296:4: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
3296 | fread(data,size,1,f);
| ^~~~~~~~~~~~~~~~~~~~
caire@caire-A320MH:~/Downloads/SoftLK/SoftLK-tools-master/SLK_img2pixel$

Feature Request: Generalize image sizes

It would be very handy to not have to cut my images into squares and then re-stitch them together.

Currently my rectangles are being output as squares when I run them through the application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.