127 Commits

Author SHA1 Message Date
Thomas Bernard
3265a8bcad Win32: Support for Pasting 16bpp DIBs 2018-12-21 13:16:52 +01:00
Thomas Bernard
90acb24c40 WIN32: Save to clipboard 2018-12-20 13:05:16 +01:00
Thomas Bernard
ec6d619efa Load_ClipBoard_Image() fix
lines are aligned on DWORD boundaries
2018-12-20 13:04:10 +01:00
Thomas Bernard
3876bb03e1 Load from clipboard 2018-12-19 13:10:07 +01:00
Thomas Bernard
617e4da310
refuse to load file exceeding 9999x9999 pixels.
Prevent crashing when a GIf file pretends to be 50000x50000
2018-12-17 22:02:13 +01:00
Thomas Bernard
da092228f3
improve Atari ST file formats NEOchrome and Degas 2018-12-14 09:25:19 +01:00
Thomas Bernard
c81ffb0d6e
Automatically set Drawing mode when loading Thomson, C64 and Apple 2 files 2018-12-11 12:25:39 +01:00
Thomas Bernard
2a6f0e3a27
new function Set_image_mode() to set image mode in Load_XXX() functions 2018-12-11 12:25:39 +01:00
Thomas Bernard
84068c5516
change C64_FLI() to use T_IO_Context 2018-12-11 12:25:39 +01:00
Thomas Bernard
a65b31fece correctly populate Format for CONTEXT_PREVIEW 2018-12-08 18:12:35 +01:00
Thomas Bernard
1bffaacead Apple II HGR & DHGR Load/Save 2018-12-08 18:12:35 +01:00
Thomas Bernard
67a1220085
SCR (Amstrad CPC) file format
- Implements Test_SCR() / Load_SCR() for standard formats pictures
- Save .PAL file in Save_SCR()
2018-11-22 10:16:26 +01:00
Thomas Bernard
792c329ba1 Load_C64() support for Micro Illustrator and Run Paint files 2018-11-21 12:01:43 +01:00
Thomas Bernard
c251a1ca22 Load_C64() support for Paint Magic files 2018-11-21 11:23:52 +01:00
Thomas Bernard
2eb332411b
Save (and Load) Autoloading TO8 pictures 2018-11-14 11:28:09 +01:00
Thomas Bernard
23812b28e9
Load_MOTO(): support the ".MAP" format (GET/SAVEP/LOADP/PUT) 2018-11-14 11:28:09 +01:00
Thomas Bernard
77262deadc
Add Loading of files produced by TGA2TEO for the Thomson TO8 2018-11-14 11:28:09 +01:00
Thomas Bernard
fab2d9807d
Load_C64() add Advanced Art Studio (.ocp) format 2018-11-10 21:32:53 +01:00
Thomas Bernard
245839d549
Load_C64() added support for more C64 hires formats 2018-11-10 21:32:53 +01:00
Thomas Bernard
5c076f644f
Load_C64() add support for Blazing Paddles/Rainbow Painter multicolor 2018-11-10 21:32:53 +01:00
Thomas Bernard
7cd9efc7f3
Load_C64() : Add Artist64 format 2018-11-10 21:32:53 +01:00
Thomas Bernard
8532064dd0
Load_C64() add support for Picasso64 format 2018-11-10 21:32:53 +01:00
Thomas Bernard
907da28911 Win32: fix Open_file_write() and Open_file_write_with_alternate_ext() when no unicode filename is supplied 2018-11-09 12:50:44 +01:00
Thomas Bernard
56df5080a5 filesel.c/.h: improvements in doxygen
Translated a few comments from French to English.
also improved the code slightly
2018-07-27 14:29:25 +02:00
Thomas Bernard
7fb77f85f1 Add GFX2_Log() function 2018-07-12 19:11:39 +02:00
Thomas Bernard
8dfd6d6c97 Handle PIXEL_TALL3 mode in file formats (GIF) 2018-07-12 11:54:12 +02:00
Thomas Bernard
734bad13e1 move KEY_* defines from global.h to keycodes.h 2018-07-02 11:38:52 +02:00
Thomas Bernard
4d86b8a0c1 change all references to SDLK_xxxxx to KEY_xxxx
+ some fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
77005eb780 use screen.h instead of sdlscreen.h, etc.
Create grafx2-win32 MSVC++ project
create keycode.h
various fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
fb51c1bb1c SDL_GetTicks() => GFX2_GetTicks()
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-02 11:38:51 +02:00
Thomas Bernard
a6c948b27e don't use SDL in Load_surface() anymore
So the init phase does not depend on SDL anymore.

Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-02 11:38:51 +02:00
Thomas Bernard
92facef46d Convert comments to UTF-8
most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 !
2018-06-26 11:37:19 +02:00
Philip Linde
b91cfe4ed3 Call Button_Quit and Button_Page with correct enum
These functions are called explicitly in a few places and need to be
handed the corresponding enum value to correctly get the button value.
Since they were previously called with -1, they would cause segfaults.
These seemed to happen when restoring backups or loading images to both
pages.
2018-06-03 20:03:34 +00:00
Thomas Bernard
b83d51d2f9 use .flc as default for FLI/FLC format, not to be confused with C64 FLI 2018-04-16 13:08:46 +02:00
Thomas Bernard
bb7b187275 Load FLI/FLC autodesk animator files. 2018-04-16 07:03:17 +00:00
Thomas Bernard
cd8291b6ff loadsave: change Test_XXX functions to open file only once 2018-03-15 12:21:22 +01:00
Thomas Bernard
b039977f5f move Test_XXX/Load_XXX/Save_XXX functions prototypes to fileformats.h 2018-03-15 12:21:16 +01:00
Thomas Bernard
cfd5839ba5 Load Amiga Icons found in .info files 2018-03-12 11:39:10 +01:00
Thomas Bernard
30f23b93ef Massive change of button callback function prototypes 2018-03-10 00:46:11 +01:00
Thomas Bernard
b0203ff93c Display original picture size in Load/Save dialog when displaying a thumbnail 2018-03-06 16:25:39 +01:00
Thomas Bernard
d9ca8c044b Allow to compile without RECOIL (make NORECOIL=1) 2018-03-05 15:42:14 +01:00
Thomas Bernard
44b1d5a466 Try to load images with RECOIL (REtro COmputer IMage Library) 2018-03-05 15:42:14 +01:00
Thomas Bernard
8a1781df09 Delete_safety_backups() fix memory leaks 2018-03-05 09:22:03 +01:00
Thomas Bernard
b98b743d21 Look_for_alternate_ext() fix uninitialized memory access 2018-03-05 09:22:02 +01:00
Thomas Bernard
854d787e59 io.c: Add Remove_directory() and Remove_path()
Also implement WIN32 version of File_length()
2018-02-20 15:45:45 +01:00
Thomas Bernard
60beebc9ac fixes for MSVC non-standard C library
strcase => _stricmp
strncase => _strnicmp
strdup => _strdup
snprintf => _snprintf

a compliant snprintf() is supposed to be available
in MS Visual Studio 2015 and later
2018-02-20 15:45:45 +01:00
Thomas Bernard
dc4926b7c0 Fix to compile windows build with MinGW32 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
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
3a0e187d73 loadsave.c: function Remove_file() 2018-02-20 15:45:45 +01:00