Thomas Bernard
02708cc190
2022 => 2023
2023-03-06 08:17:22 +00:00
Nic Soudée
a851e49f86
Set Rel_Coords button values to 0/1 instead of 2/1
2022-05-18 21:57:35 -04:00
Nic Soudée
2fbe9ba5f2
Bump year to 2022 where appropriate
2022-01-22 10:57:55 -05:00
Adrien Destugues
32ec828835
Group all copyright statements in a single file.
...
This gives a much clearer overview of the licensing.
It also shows there are some problems:
- Some files are under GPLv3 only
- Some files have no known license at all.
2020-12-19 21:56:33 +00:00
Thomas Bernard
c037c2c911
move GFX2_GetTicks() to osdep.c
2020-04-11 23:20:39 +02:00
Thomas Bernard
811cb619b6
remove a few #include <windows.h>
...
also #include <direct.h>
2020-04-11 22:42:33 +02:00
Thomas Bernard
eb0effaf3f
move some functions from filesel.c to fileseltools.c
2020-02-15 11:46:36 +01:00
Thomas Bernard
c6460cf939
prepare version 2.7 release
2020-01-30 23:58:51 +01:00
Thomas Bernard
50ac812f6a
Remove the Nb_fonts global variable.
...
+ do not return pointers to static buffers
2019-12-26 23:29:24 +01:00
Thomas Bernard
24fee41e41
Allow closing window in more dialog
...
see http://pulkomandy.tk/projects/GrafX2/ticket/141
see e72bb8cab16a237f74db0cde1ed43e9f45ff0bd0
2019-08-14 23:24:12 +02:00
Thomas Bernard
848ec95e92
fix warnings caused by sprintf()
...
note :
%hhu is C99, old mingw32 compiler complains about it
2019-07-25 00:04:41 +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
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
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