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
Thomas Bernard
3ed5dc5786
loadsave.c: add Open_file_write/Open_file_read() functions
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
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
a1f0f36062
chdir() => Change_directory()
...
improve portability
2018-02-20 15:44:39 +01:00
Thomas Bernard
f0c5854021
Load_IFF() support ILBM animations type 74
2018-02-18 21:11:40 +01:00
Thomas Bernard
a94f07ddde
Save_IFF(): support Comment saving (in ANNO chunk)
2018-02-18 21:11:40 +01:00
Thomas Bernard
4c92e87d52
Fix the preview for HAM files
...
HAM files are "true color" pictures which do have
a palette.
2018-02-18 21:11:40 +01:00
Thomas Bernard
2bfbc03cb8
Display the bpp of the picture in the Load/Save Dialog
2018-02-18 21:11:40 +01:00
Thomas Bernard
d59c7b6d26
Load_IFF() : support ACBM IFF subtype
2018-02-18 21:11:40 +01:00
Thomas Bernard
9bb459224e
Load_IFF() Fixed support of HAM pictures.
...
Loading HAM6 and HAM8 ast true color pictures
2018-02-18 21:11:40 +01:00
Thomas Bernard
48f0f37793
Restore Background color when loading a brush with transparent color
...
see http://pulkomandy.tk/projects/GrafX2/ticket/70
2018-02-05 12:23:09 +01:00
Thomas Bernard
bd581c7a90
Save transparent background of Brushes
...
see http://pulkomandy.tk/projects/GrafX2/ticket/70
2018-01-30 21:32:33 +01:00
Thomas Bernard
4ffa389a90
Update File selector to load/save palettes
...
Also "constify" the format array
2018-01-25 22:55:27 +01:00
Thomas Bernard
207e487d99
Show palette in preview (instead of image) when loading palette !
2018-01-25 22:55:27 +01:00
Thomas Bernard
76f3860712
fix after rebase
2018-01-25 22:55:27 +01:00
Thomas Bernard
1c6a9e2db2
fix UI colors Remaping when several windows are open
2018-01-25 22:55:27 +01:00
Thomas Bernard
2d26bb8a1f
WIP: "Load" button in Palette Dialog
...
see http://pulkomandy.tk/projects/GrafX2/ticket/24
still some issues :
1) UI color remapping
2) File type selector (need to add a Palette selector
in addition to the Main and Brush selector)
2018-01-25 22:55:27 +01:00
Thomas Bernard
a53d6da6ea
Add visible_image and backups to the T_Document structure
2018-01-22 16:16:39 +01:00
Thomas Bernard
8ae651c75f
put common fields for Main and Spare page in a T_Document structure
2018-01-22 14:46:44 +01:00
Thomas Bernard
1232675b59
Save_ICO()
...
With transparency data
2018-01-18 11:20:51 +01:00
Thomas Bernard
ad9306498f
Add support for 2bpp BMP's (Win CE)
...
File extension is usually 2bp (ic2 for icons)
2018-01-18 00:59:00 +01:00
Thomas Bernard
674fc76649
Fix minor issues
2018-01-17 17:31:32 +01:00
Thomas Bernard
c2486ed629
Support of .ICO file loading
...
only loading the biggest icon
see http://pulkomandy.tk/projects/GrafX2/ticket/69
2018-01-17 00:54:10 +01:00
Adrien Destugues
5b6095f0bc
Fix all warnings and enable -Werror
...
mostly unused variables and broken indentation.
2017-05-06 15:13:50 +02:00
Adrien Destugues
8808625851
Add a "tall 3" drawing mode.
...
Pixels with 3:4 aspect ratio. Why not?
Contributed by Nic Soudée (zoner/xylem). Thanks!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2166 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-10-15 18:57:14 +00:00