2831 Commits

Author SHA1 Message Date
Thomas Bernard
be30792e93
Save the "working" palette in palette editor
it was saving the picture palette, ie palette before
any modification in the palette dialog.

fixes http://pulkomandy.tk/projects/GrafX2/ticket/121
2019-05-27 10:27:01 +02:00
Thomas Bernard
d2777d79cb
add a Sega Mega Drive / Genesis drawing mode 2019-05-27 09:44:25 +02:00
Thomas Bernard
537334f327
win32: silent 2 warnings 2019-05-24 10:55:00 +02:00
Thomas Bernard
d287d55710
do not use MAX_PATH anymore in main.c 2019-05-24 10:43:39 +02:00
Thomas Bernard
fdb317ebdf
fix retrieval of program path for MinGW builds without sdl
force usage of "W" functions when not compiled with -DUNICODE
2019-05-23 11:42:25 +02:00
Thomas Bernard
cb78ac6136
win32: fix Get_current_directory() for unicode directories
it was returning things like
C:\TEMP\grafx2\test-à__??????\
instead of the ASCII short path :
C:\TEMP\grafx2\TEST-_~1\

see http://pulkomandy.tk/projects/GrafX2/ticket/45
2019-05-23 11:37:57 +02:00
Thomas Bernard
d4aa63964d
io.c: include <stdlib.h> to use free() 2019-05-21 21:53:13 +02:00
Thomas Bernard
16ecf7fb0a
fix API=x11 build 2019-05-21 21:52:31 +02:00
Thomas Bernard
562f5acd9a
SDL1.x/x11: try to get window state (maximized, etc.)
that might not work perfectly :)
2019-05-21 21:51:23 +02:00
Thomas Bernard
2d645edbc0 win32: save the "not maximized" window size
also fix the window start up position

see http://pulkomandy.tk/projects/GrafX2/ticket/102
2019-05-21 20:45:21 +02:00
Thomas Bernard
31d3719f26
SDL2: log SDL_WINDOWEVENT_MINIMIZED / SDL_WINDOWEVENT_MAXIMIZED / SDL_WINDOWEVENT_RESTORED 2019-05-21 17:23:40 +02:00
Thomas Bernard
d5cd358d72
do not disable magnifier when loading a picture if possible
see
http://pulkomandy.tk/projects/GrafX2/ticket/14
2019-05-21 14:18:12 +02:00
Thomas Bernard
a41793ea04
fix Best_video_mode() limit to 1024x768 2019-05-21 13:13:27 +02:00
Thomas Bernard
02c48d70cf
Load_PKM() log what is origin screen dimensions 2019-05-21 13:11:41 +02:00
Thomas Bernard
d8f30b5a8d
fix Merge_layer() prototype 2019-05-19 19:05:00 +02:00
Thomas Bernard
1dc7c746a2 SDL/SDL2: log more events 2019-05-19 00:06:23 +02:00
Thomas Bernard
e3a923c2bc ignore QUIT messages from the system during the quit dialog
fixes http://pulkomandy.tk/projects/GrafX2/ticket/116
2019-05-19 00:04:26 +02:00
Thomas Bernard
cbc6b96639
more debug output in Get_config_directory() and Get_program_directory()
readlink() returns the number of bytes written
2019-05-16 12:38:10 +02:00
Thomas Bernard
0eb715bd17
better error handling in Extract_path() 2019-05-16 12:28:11 +02:00
Thomas Bernard
01c67739d1
Add debug output 2019-05-16 11:52:37 +02:00
Thomas Bernard
450d5f06a4
Allow Analyze_command_line() to be executed earlier 2019-05-16 11:51:07 +02:00
Thomas Bernard
a96d0289f4
make install: install gfx2.png as well 2019-05-16 10:46:20 +02:00
Thomas Bernard
b04f26cac0 win32: Load FileName from clipboard as well
Tested from windows explorer
2019-05-11 13:02:15 +02:00
Thomas Bernard
b170fce29d
change directory and highlight file when pasting a file path 2019-05-11 12:09:25 +02:00
Thomas Bernard
123fa86936
X11 clipboard: support pasting of filenames
see http://pulkomandy.tk/projects/GrafX2/ticket/107
2019-05-11 12:09:25 +02:00
Thomas Bernard
583d646b26
X11 clipboard paste : support several formats 2019-05-11 12:09:15 +02:00
Thomas Bernard
d24dd3e1a9
X11 Drag'n'drop: debug log of supported formats 2019-05-10 11:59:09 +02:00
Thomas Bernard
58bf9e73c1
use DEFAULT_SKIN_FILENAME and DEFAULT_FONT_FILENAME 2019-05-10 11:54:22 +02:00
Thomas Bernard
b86871d3bc
update www links in helpfile.h 2019-05-10 11:54:17 +02:00
Thomas Bernard
387e66068e Add gfx2mem.h/.c to MS Visual Studio projects 2019-05-10 10:46:54 +02:00
Thomas Bernard
c051ac2189
use GFX2_malloc() to log allocation errors
also check malloc() return more often
2019-05-07 17:25:18 +02:00
Thomas Bernard
7f78f3ec72
Win32: open a console for debugging when -v option is passed 2019-05-07 17:25:18 +02:00
Thomas Bernard
b5d61472e5
factory.c: remove static selected_file[] string buffer 2019-05-07 17:25:18 +02:00
Thomas Bernard
05175292a6
several fixes for WIN32
better handle minimize/maximize
http://pulkomandy.tk/projects/GrafX2/ticket/102
2019-05-07 17:25:18 +02:00
Thomas Bernard
7d5f287737
Change Selector_filename to Selector->filename 2019-05-07 17:25:17 +02:00
Thomas Bernard
030b7fa9b8
Remove usage of MAX_PATH_CHARACTERS in loadsave.c 2019-05-07 17:25:17 +02:00
Thomas Bernard
4bbb4f142d
Remove usage of MAX_PATH_CHARACTERS in loadrecoil.c 2019-05-07 17:25:17 +02:00
Thomas Bernard
e0401e8205
Remove usage of MAX_PATH_CHARACTERS in filesel.c 2019-05-07 17:25:17 +02:00
Thomas Bernard
c85a703aa0
Button_autosave() use unicode filename too 2019-05-07 17:25:17 +02:00
Thomas Bernard
6e83791dde
Improve Print_current_directory() 2019-05-07 17:25:17 +02:00
Thomas Bernard
9886872c8a
T_IO_Context Original_file_name and Original_file_directory are now dynamically allocated 2019-05-07 17:25:17 +02:00
Thomas Bernard
11ddd669b3
Remove some static length strings
There are too many MAX_PATH_CHARACTERS length string.
make Initial_directory, Data_directory, Config_directory
dynamically allocated.

remove big static strings in Init_Program()
2019-05-07 17:25:17 +02:00
Thomas Bernard
fc3e424922
shut up Warning about Pixel_figure_no_screen()
Also fix drawing at X=0 or Y=0
2019-05-07 17:25:17 +02:00
Thomas Bernard
758807e746
fix compilation warning in Load_INI() 2019-05-07 17:25:17 +02:00
Thomas Bernard
651d12b87b
get rid of MAX_PATH_CHARACTERS in factory.c 2019-05-07 17:25:17 +02:00
Thomas Bernard
79446a9c72
get rid of MAX_PATH_CHARACTERS in T_Page and T_Selector_Settings
strdup() the dynammicaly allocated filename and directory strings
2019-05-07 17:25:17 +02:00
Thomas Bernard
98811b6363
Get rid of Get_full_filename() 2019-05-07 17:25:17 +02:00
Thomas Bernard
c6781cd7cd
Brush_file_directory, Brush_filename, Brush_filename_unicode are no longer static strings 2019-05-07 17:25:17 +02:00
Thomas Bernard
fcd17f057b
remove usage of MAX_PATH_CHARACTERS in Test_MOTO() and Load_MOTO() 2019-05-07 17:25:17 +02:00
Thomas Bernard
0e0752c7d0
x11screen.c: remove usage of MAX_PATH_CHARACTERS 2019-05-07 17:25:17 +02:00