Thomas Bernard
c85a703aa0
Button_autosave() use unicode filename too
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
22a895f45c
fix Button_Brush_FX()
...
the test on Quit_is_required was wrong
2019-02-15 13:19:40 +01:00
Thomas Bernard
4283fde82a
MOD_CTRL => GFX2_MOD_CTRL, etc.
2019-02-13 15:42:51 +01:00
Thomas Bernard
e72bb8cab1
Allow Windows Close (X) in more popup dialogs
...
- Settings
- Skins
- Copy Page
- Resolution
- Gradients
- Brush Effects
- Brush menu
- Effects
- Help / About
- Statistics
- Palette
- Palette Historgram
- 2nd palette menu
2019-02-01 01:09:50 +01:00
Thomas Bernard
774bd73602
Enable to close the application within the initial Anim/Layer dialog
...
we waited for a mouse or keyboard event but clicking
the close X of the window doesn't send any...
2019-01-31 22:52:53 +01:00
Nic Soudée
228e651b4f
Correct some spelling mistakes
...
Automaticaly --> Automatically
Invalide --> Invalid
Strech --> Stretch
allows to --> allows one to
attachement --> attachment
contraints --> constraints
inconsistant --> inconsistent
occured --> occurred
occurences --> occurrences
permits to --> permits one to
postion --> position
regularily --> regularly
transfered --> transferred
2019-01-24 08:32:58 -05:00
Thomas Bernard
5d8c61e410
prepare v2.6 release
2019-01-10 09:40:57 +01:00
Thomas Bernard
595348e7ed
_XOPEN_SOURCE should be defined on CFLAGS if needed
2018-12-17 10:35:30 +01:00
Thomas Bernard
8e6ddb4066
update Gradation menu
2018-12-15 20:21:17 +01:00
Thomas Bernard
9c2cd926f1
Tag_color_gradient_range() to simplify code
2018-12-15 17:02:09 +01:00
Thomas Bernard
7e3e39a753
enum FSOBJECT_TYPE for object type : File / Directory / Drive
2018-12-09 00:09:01 +01:00
Thomas Bernard
f655d7f7c9
show help for "8 BIT" in FX menu when mouse is over the button
...
+ underscore the F of feedback
2018-12-08 18:12:36 +01:00
Thomas Bernard
8a3860611d
Left clic on 8bit button now opens the menu if no mode has previously been selected
2018-11-26 10:50:52 +01:00
Thomas Bernard
5ae73fb7c8
add A and L keyboard shortcut in the initial message window
2018-11-20 13:48:47 +01:00
Thomas Bernard
34b89a2768
const T_Setting * args when possible
2018-11-16 18:40:37 +01:00
Thomas Bernard
6189b43917
Add a gfx2.ini parameter to set the gamma for Thomson MO/TO palettes
2018-11-15 23:39:00 +01:00
Jordan Christiansen
c40a2ad470
Prevent "Restore lasso brush" from clearing the brush
...
Fixes Trac bug #16
2018-11-09 18:14:00 +01:00
Thomas Bernard
50f3b99106
store unicode filename for brush
2018-11-09 12:50:45 +01:00
Thomas Bernard
5ac8811dbe
add missing break statement (see commit eba26aaa )
...
eba26aaa96
2018-11-06 18:05:08 +01:00
Thomas Bernard
12050cd068
update Find_file_in_fileselector() to return -1 when not found
2018-09-15 11:11:48 +02:00
Thomas Bernard
8dfd6d6c97
Handle PIXEL_TALL3 mode in file formats (GIF)
2018-07-12 11:54:12 +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
5c761ace2c
Use KEY_NONE for buttons without key shortcuts
...
SDLK_LAST was used, but it is SDL 1.x specific
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
72fea0290f
isolate dependencies to SDL
...
Do not access directly the SDL_Surface Screen_pixels
use new functions Get_Screen_pixel_ptr() Set_Screen_pixel(),
Get_Screen_pixel()
And SetPalette()
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
Thomas Bernard
6731a57999
escape non ascii chars to HEX \xNN in C source (not in comments)
...
add "" where needed.
also fix extra space at end of lines (only in modified files)
2018-06-26 10:49:33 +02:00
Nic Soudée
044a042e38
Various window shortcut keys
...
* Settings window: "r" for Reload, "a" for Auto-Save, "s" for Save.
* Screen size: "h" to set height
* Spray menu: "s" for Size, "d" for Delay, "m" for Mono-Flow, "i" for Init
* Text Menu: "t" to enter text, "s" to enter size, show underscore for AA, Bold, Italic
* Palette window: "w" for Swap, "t" for Histo, fix "i" for Flip, show underscore for Merge, Used
* Transform menu: replace X and Y labels with W and H, and make them also shortcuts. I have renamed these
labels so that it does not conflict with the existing Mirror "X" and "Y" buttons.
2018-06-24 19:55:18 -04:00
Nic Soudée
a01e7eea69
Implement shortcut/underscore for input button
2018-06-24 15:25:26 +00: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
c8bc04e413
Fix filebackup when saving.
...
It was the wrong filename that was backuped when using "Save As".
Now it is the filename selected.
2018-04-06 16:45:35 +02:00
Thomas Bernard
187c7d53e3
Fix a few warnings (from MS Visual Studio 2015)
2018-04-06 16:45:35 +02:00
Thomas Bernard
a29168f7ce
Splash screen : 2017->2018
2018-03-20 21:58:22 +01:00
Thomas Bernard
30f23b93ef
Massive change of button callback function prototypes
2018-03-10 00:46:11 +01:00
Thomas Bernard
f2d579695c
implements selection of circle/ellipse mode with right button
...
see http://pulkomandy.tk/projects/GrafX2/ticket/54
2018-03-10 00:46:11 +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
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
6f48d7fefe
Add MSVC 2010 project file and a make the project compile
2018-02-20 15:45:45 +01:00
Thomas Bernard
9fb6d650b5
pass unicode name when clicking Load or Save button
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
545308265b
Add the ability to print unicode characters in addition to "Latin1" ones
2018-02-20 15:44:39 +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
abe7a8cb59
simplification of in Load_picture()
2018-01-25 22:55:27 +01:00
Thomas Bernard
76f3860712
fix after rebase
2018-01-25 22:55:27 +01:00
Thomas Bernard
ccf3e6a77f
Change Load_picture() prototype to allow loading of palette
...
the change matches what is done with Save_picture()
2018-01-25 22:55:27 +01:00