1763 Commits

Author SHA1 Message Date
Thomas Bernard
02708cc190 2022 => 2023 2023-03-06 08:17:22 +00:00
Thomas Bernard
0f762fb360 support both libtiff-5.dll and libtiff-6.dll 2023-01-21 20:24:54 +01:00
Thomas Bernard
317a27aa40
mockui.c: fix Open_window() / Close_window()
Windows_open needs to have a consistent value
2023-01-21 19:45:28 +01:00
Thomas Bernard
f2f6b8d135
ifformat.c: fix build 2023-01-21 19:31:03 +01:00
PulkoMandy
b36c464ccd More Amiga OS fixes 2022-10-24 20:53:05 +02:00
PulkoMandy
e782bfd66b Attempt to fix gp2x build 2022-10-24 20:05:39 +02:00
Artur Jarosik
10f11e3359 Update Amiga OS build 2022-10-24 19:18:22 +02:00
Thomas Bernard
7e5daa65a8 fix Surface_to_bytefield()
Each line of the SDL surface use "pitch" bytes.
see https://pulkomandy.tk/projects/GrafX2/ticket/171
2022-10-07 06:45:38 +00:00
Thomas Bernard
0a8edc6bba explicitly link with the zlib 2022-10-07 01:19:27 +02:00
Nic Soudée
a851e49f86 Set Rel_Coords button values to 0/1 instead of 2/1 2022-05-18 21:57:35 -04:00
Thomas Bernard
aab99d474b
Generate doc with new skins introduced in 2ece8cd0 2022-02-01 10:06:26 +01:00
Nic Soudée
2fbe9ba5f2 Bump year to 2022 where appropriate 2022-01-22 10:57:55 -05:00
Nic Soudée
e5609cc0e2 Use Unicode_char_strlcat for unicode padding 2022-01-21 21:47:49 +00:00
Nic Soudée
25b55ef7f9 Tweak left/right/backspace in text boxes 2022-01-21 21:47:49 +00:00
Nic Soudée
fa0352a0e8 enter text button at tail when using keystroke 2022-01-21 21:47:49 +00:00
Nic Soudée
30509cf45c Pad text to erase trailing garbage (unicode) 2022-01-21 21:47:49 +00:00
Nic Soudée
a806a332ce Discard hotkey keystroke for text buttons 2022-01-21 21:47:49 +00:00
Nic Soudée
2f066b1b25 Pad text input button to erase trailing garbage 2022-01-21 21:47:49 +00:00
Adrien Destugues
1bbc6a157e Add two new skins by Ilkke: black and klin. 2022-01-17 20:47:55 +01:00
Thomas Bernard
8c47fb3fa9
fileseltools.c: fix spaces on empty lines 2021-12-16 21:29:56 +01:00
Thomas Bernard
3f291cb32f Info.plist: use x.y.z version strings 2021-09-15 12:16:59 +00:00
Thomas Bernard
1cc88b9d3f Info.plist: CFBundleShortVersionString 2021-09-15 12:16:59 +00:00
Thomas Bernard
f70bb71d2a
filesel.c: remove warning for Win32 build + debug log 2021-05-18 03:46:25 +02:00
Thomas Bernard
6ab99ee657
comments 2021-05-03 23:51:34 +02:00
Thomas Bernard
d64e10a628
2gsformats.c: fix compilation warnings 2021-05-03 23:43:22 +02:00
Thomas Bernard
39ee4d1eae Loading of Apple II GS files 2021-05-03 06:59:26 +00:00
Thomas Bernard
1e10da1323 update recoil to version 6.1.0 2021-04-04 08:03:34 +00:00
Thomas Bernard
77f24ad3a4
Fix TIFF saving
there was a buffer overrun error with image which heigh
was not a multiple of 64.
2021-04-03 14:09:26 +02:00
Thomas Bernard
103fc6bd49 Save_TIFF(): do not call TIFFFlushData() 2021-03-31 22:05:29 +02:00
Jerome Duval
fd702d31b5 include haiku.h in setup.c
improve haiku_get_app_path()
2021-03-31 12:56:06 +02:00
PulkoMandy
3fa8c98c17 Prepare for a 2.8 release 2021-03-24 21:54:59 +01:00
Thomas Bernard
69d2ab8260
Add a skin from Christoballs/Christopher Kelsall
http://pixeljoint.com/pixelart/137461.htm
https://twitter.com/ckelsallpxls/status/1355690030149328900
2021-02-03 09:48:11 +01:00
Thomas Bernard
78116c5574
Fix Doxygen for Realpath() 2021-02-03 09:47:16 +01:00
Thomas Bernard
292e1ce9db
Custom implementation of Realpath() 2021-01-30 11:48:23 +01:00
Thomas Bernard
b9806bfbf3
Remove Realpath() unlicensed implementation
It is probably not usefull anyway
2021-01-30 11:00:56 +01:00
Thomas Bernard
0fc6aa12f1
simplify Extract_filename() and Extract_path() 2021-01-30 11:00:55 +01:00
Thomas Bernard
be48b4791c add test for sgx format 2021-01-06 09:13:22 +00:00
Thomas Bernard
28a20734d9 Current_layer_count_used_colors() for use with Save_xxx functions 2021-01-06 09:13:22 +00:00
Thomas Bernard
9ed89cc860 Support for saving SymbOS .SGX graphics files 2021-01-06 09:13:22 +00:00
Thomas Bernard
713fd9ff71 Load SGX SymbOS graphics 2021-01-06 09:13:22 +00:00
Adrien Destugues
951f58445c Fix path detection on Haiku 2021-01-01 11:41:05 +01:00
Kiri Jolly
d36cf2d14a Fixed writing pixels out of bounds when using the gradient ellipse (corners) tool.
Gradient ellipse (corners) tool had no clipping code, and would draw off the bottom or right edge of the image.

Clipping code has been added, similar to other tools.
2020-12-23 20:06:02 -08:00
Thomas Bernard
101438381d
utf8 is mandatory for HTML5 so convert to utf8 2020-12-22 23:19:16 +01:00
Thomas Bernard
6f21c7e753
malloc return check in Save_GIF()
also translated comments from French to English
2020-12-20 18:18:30 +01:00
Thomas Bernard
6b6f8790d5
fix the "Screen_size_in_GIF" feature. The canvas must not be smaller than the picture ! 2020-12-20 17:48:07 +01:00
Thomas Bernard
c9b1c8a11e
HTTP/HTML charset is ISO-8859-1, not ISO8859-1 2020-12-20 11:38:22 +01:00
Adrien Destugues
32ec828835 Group all copyright statements in a single file.
This gives a much clearer overview of the licensing.

It also shows there are some problems:
- Some files are under GPLv3 only
- Some files have no known license at all.
2020-12-19 21:56:33 +00:00
Jordan Christiansen
ff7e5c9ee2 Prevent a file path buffer overrun
If a filename passed from the command line arguments is ever longer than
the current working directory (and it usually is longer), strcpy will
overrun the working directory buffer. This usually doesn't cause a crash
right away, but it caused weird bugs for me, like an assertion failure
in free() when trying to free the buffer later:

    free(): invalid next size (fast)

Valgrind helped me track down the cause:

    $ valgrind bin/grafx2-sdl ~/Projects/kind-of-longish-directory-name/file.gif

    ...

    ==116375== Invalid write of size 1
    ==116375==    at 0x483DDE6: strcpy (vg_replace_strmem.c:511)
    ==116375==    by 0x1265B2: Init_program (main.c:1104)
    ==116375==    by 0x12704F: main (main.c:1536)
    ==116375==  Address 0x5534a81 is 21 bytes after a block of size 28 alloc'd
    ==116375==    at 0x483CD7B: realloc (vg_replace_malloc.c:834)
    ==116375==    by 0x4E70F3F: getcwd (in /usr/lib/libc-2.32.so)
    ==116375==    by 0x17277E: Get_current_directory (io.c:1096)
    ==116375==    by 0x125B02: Init_program (main.c:655)
    ==116375==    by 0x12704F: main (main.c:1536)
2020-12-15 12:25:15 -06:00
Thomas Bernard
6f94186caf
add test for packed CPC SCR 2020-12-13 19:53:42 +01:00
Thomas Bernard
10ebb6da7c
compare formats[].format to skip compare 2020-12-13 19:53:42 +01:00