1841 Commits

Author SHA1 Message Date
Thomas Bernard
dc4926b7c0 Fix to compile windows build with MinGW32 2018-02-20 15:45:45 +01:00
Thomas Bernard
3c3ef150a6 improve Test_PPH()
remove one TODO :)
2018-02-20 15:45:45 +01:00
Thomas Bernard
be824627ce loadsave.c: Add functions to open file with alternate extension.
Used by CPC format which are in several files :
PPH format uses PPH, ODD, EVE
CM5 uses CM5 + GFX
2018-02-20 15:45:45 +01:00
Thomas Bernard
fda4708756 implement Unicode Copy/Paster for win32 2018-02-20 15:45:45 +01:00
Thomas Bernard
6e6f8ca3f4 Open_popup() fix dropdown outside of the screen 2018-02-20 15:45:45 +01:00
Thomas Bernard
ea7fdb1927 fix Get_full_filename() prototype 2018-02-20 15:45:45 +01:00
Thomas Bernard
ad219c84d2 Make saving of unicode named files work under Win32
the "Long" name is converted to short (DOS 8.3) name
as soon as possible.
2018-02-20 15:45:45 +01:00
Thomas Bernard
74818299a3 use Open_file_read()/Open_file_write() 2018-02-20 15:45:45 +01:00
Thomas Bernard
3a0e187d73 loadsave.c: function Remove_file() 2018-02-20 15:45:45 +01:00
Thomas Bernard
3ed5dc5786 loadsave.c: add Open_file_write/Open_file_read() functions 2018-02-20 15:45:45 +01:00
Thomas Bernard
bbdee15990 Filename input in unicode for Win32 2018-02-20 15:45:45 +01:00
Thomas Bernard
c48e881a54 WIN32 versions of io functions 2018-02-20 15:45:45 +01:00
Thomas Bernard
d924e0b827 Disable annoying warning in MSVC 2018-02-20 15:45:45 +01:00
Thomas Bernard
6f48d7fefe Add MSVC 2010 project file and a make the project compile 2018-02-20 15:45:45 +01:00
Thomas Bernard
ee1ec1a1b0 Load_Unicode_font(): Warning_with_format(), better filename parsing 2018-02-20 15:44:39 +01:00
Thomas Bernard
39c4466db0 use sprintf(xxx,"%s%s...", x, y ..) for string concatenation 2018-02-20 15:44:39 +01:00
Thomas Bernard
339e37663f readline.c: fix cursor display with unicode characters 2018-02-20 15:44:39 +01:00
Thomas Bernard
2ad59e1686 add Get_font_character_pixel() to get font pixels 2018-02-20 15:44:39 +01:00
Thomas Bernard
144d10b682 Support Unicode Keyboard Input 2018-02-20 15:44:39 +01:00
Thomas Bernard
689aebf264 Unicode support in keyboard editable field for filename 2018-02-20 15:44:39 +01:00
Thomas Bernard
9fb6d650b5 pass unicode name when clicking Load or Save button 2018-02-20 15:44:39 +01:00
Thomas Bernard
2911d61ab1 Load_Unicode_fonts() loads all unicode_XXXX-XXX.png files from skins directory 2018-02-20 15:44:39 +01:00
Thomas Bernard
4a2754321f update For_each_file() to pass both full path and file name only to the callback
All  callbacks need to extract the filename anyway, so it simplify the code
2018-02-20 15:44:39 +01:00
Thomas Bernard
a4593da4d4 display unicode filename in menu 2018-02-20 15:44:39 +01:00
Thomas Bernard
de8379aab8 Print_current_directory(): use ELLIPSIS_CHARACTER instead of ... 2018-02-20 15:44:39 +01:00
Thomas Bernard
9a03a54fef Display the current directory in unicode
rename function Print_in_window_utf16() to Print_in_window_unicode()
2018-02-20 15:44:39 +01:00
Thomas Bernard
b882eb9fe4 Print highlighted filename in unicode
Print_filename_in_fileselector()
2018-02-20 15:44:39 +01:00
Thomas Bernard
3322529804 Support for unicode names in directory listing 2018-02-20 15:44:39 +01:00
Thomas Bernard
a1f0f36062 chdir() => Change_directory()
improve portability
2018-02-20 15:44:39 +01:00
Thomas Bernard
62944c724e getcwd() => Get_current_directory() 2018-02-20 15:44:39 +01:00
Thomas Bernard
2ef2e04a7e Rewrite Read_list_of_files() to make use of For_each_directory_entry() 2018-02-20 15:44:39 +01:00
Thomas Bernard
cb936b24e7 Update For_each_directory_entry() for more args in callback 2018-02-20 15:44:39 +01:00
Thomas Bernard
545308265b Add the ability to print unicode characters in addition to "Latin1" ones 2018-02-20 15:44:39 +01:00
Thomas Bernard
b564a4d4f4 UTF-8 named files for testing
Latin1 accentuated chars + Cyrrillic chars
2018-02-20 15:44:39 +01:00
Thomas Bernard
59f7261c24 Copy 3rd party dll's to bin/. Avoid dependency on libgcc*.dll 2018-02-20 01:06:10 +01:00
Thomas Bernard
8f6e955307 Cross build: Include the right libpng*.dll within the ziprelease 2018-02-19 22:32:00 +01:00
Thomas Bernard
a771b23982 3rdparty: fix clean targets 2018-02-19 19:56:02 +01:00
Thomas Bernard
c6084f2918 gitlab-ci: cross compile for Mingw32 2018-02-19 19:56:02 +01:00
Thomas Bernard
7fb8debbdf use PKG_CONFIG_LIBDIR instead of PKG_CONFIG_PATH when WIN32CROSS=1 2018-02-19 19:56:02 +01:00
Thomas Bernard
f4f2dfd4ad vasprintf() doesnt exist under Win32 :( 2018-02-19 19:55:50 +01:00
Thomas Bernard
20f8cd471d Add Freetype & SDL_ttf 2018-02-19 19:55:14 +01:00
Thomas Bernard
49876dcb9c Makefile: use cross compiled libs from ../3rdparty 2018-02-19 19:55:14 +01:00
Thomas Bernard
7ecef0d279 3rdparty: add libz as well, and make libpng use it 2018-02-19 19:55:14 +01:00
Thomas Bernard
156656c51a travis-ci: test building 3rd party lib dependencies 2018-02-19 19:55:14 +01:00
Thomas Bernard
3149d04110 Load_IFF(): load multi palette ILBMs using the BEAM chunk 2018-02-18 21:11:40 +01:00
Thomas Bernard
d4bf0a8af9 Load_IFF(): Load Animations saved by DeluxePaint ST 2018-02-18 21:11:40 +01:00
Thomas Bernard
2cdb6a4da4 Load_IFF() properly set frame duration for animations 2018-02-18 21:11:40 +01:00
Thomas Bernard
2d7ecbda0c Load_IFF() improve compatibilty with malformed IFF files 2018-02-18 21:11:40 +01:00
Thomas Bernard
c1f5ec0381 Load_IFF() animations. Support XOR in mode 5 and frame interleave of 2 2018-02-18 21:11:40 +01:00
Thomas Bernard
f0c5854021 Load_IFF() support ILBM animations type 74 2018-02-18 21:11:40 +01:00