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
bfbeaf4ca8
add directory argument to Load_Surface()
...
You can pass NULL if filename is an absolute path
2020-12-06 22:57:23 +01:00
Thomas Bernard
f2e1ea8921
GFX2_GetScreenSize()
...
remove #include <windows.h> in init.c
2020-04-12 00:47:15 +02:00
Thomas Bernard
3551f6bbc6
screen.h: remove #include <windows.h>
2020-04-11 22:42:33 +02:00
Thomas Bernard
8c6eec6928
reduced Gui_loading_error_message to 256 bytes
2019-07-25 00:04:50 +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
a95b7504a6
string length limit in .CFG is 255 chars
2019-05-07 17:25:06 +02:00
Thomas Bernard
a5d2dfab79
remove MAX_PATH_CHARACTERS in init.c
2019-05-07 17:25:06 +02:00
Thomas Bernard
2aa6376895
init: move button data to init_buttons.h
2019-05-03 22:11:39 +02:00
Thomas Bernard
ca843210d0
minor: use File_length_file() instead of File_length()
2018-11-20 14:06:28 +01:00
Thomas Bernard
5370670b10
Use different .cfg files depending on GUI API used
...
SDL1 => gfx2.cfg
SDL2 => gfx2-sdl2.cfg
Win32 => gfx2-win32.cfg
X11 => gfx2-x11.cfg
defaults to gfx2.cfg
2018-09-16 19:53:39 +02:00
Thomas Bernard
4978a7cfe2
convert Warning() and DEBUG() to GFX2_Log()
2018-07-12 20:41:49 +02:00
Thomas Bernard
18e942d486
Support fullscreen with SDL2
2018-07-02 11:38:51 +02:00
Thomas Bernard
099301721e
Properly set icon for SDL2. Also use the .png which is better resolution
2018-07-02 11:38:51 +02:00
Thomas Bernard
cb2d479867
add GFX2_Get_Window_Handle() to get the win32 HWND
...
and use it
2018-07-02 11:38:51 +02:00
Thomas Bernard
486a0a09d4
support Fullscreen with Win32 API
2018-07-02 11:38:51 +02:00
Thomas Bernard
3e4f3d0313
WIP. build under Win32 without SDL
2018-07-02 11:38:51 +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
d86efa58e4
Compilation with SDL2 (to be finalized) > API=sdl2 make
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
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
6f48d7fefe
Add MSVC 2010 project file and a make the project compile
2018-02-20 15:45:45 +01:00
Thomas Bernard
ee1ec1a1b0
Load_Unicode_font(): Warning_with_format(), better filename parsing
2018-02-20 15:44:39 +01:00
Thomas Bernard
39c4466db0
use sprintf(xxx,"%s%s...", x, y ..) for string concatenation
2018-02-20 15:44:39 +01:00
Thomas Bernard
2911d61ab1
Load_Unicode_fonts() loads all unicode_XXXX-XXX.png files from skins directory
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
Adrien Destugues
78b5ab394b
Popup menu to switch between drawing modes more easily
...
Fixes https://code.google.com/p/grafx2/issues/detail?id=510
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2113 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-04 14:33:06 +00:00
Adrien Destugues
78fcc648c3
Partial merge of the SDL2 branch into trunk
...
* Mainly get the cleanup of window drawing functions.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 13:44:18 +00:00
Adrien Destugues
c6b9eba7eb
Right click on the "add layer" button creates a new layer with a copy of the current layer contents
...
Suggested by ilkke.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2092 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 21:42:16 +00:00
Adrien Destugues
61c8dca353
Add a port to the GCW Zero, contributed by David Knight.
...
Untested since I don't have the hardware.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-10 20:13:57 +00:00
Yves Rizoud
56cdbc4c10
Issue 505: Support for saving IFF/ILBM format, compatible with Deluxe Paint 3
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1993 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-15 18:05:44 +00:00
mazzearos
113d6423b4
src/init.c: bail out if skin_name or font_name is "".
...
Fixes a crash on AROS
src/filesel.c: fixed BSTR conversion routine for AROS.
Without this fix "RAM DISK" was printed as "AM DISK" in
the file selector.
src/setup.c: removed slash to avoid that paths like
"PROGDIR:/share" are created on AROS. That fix should be right
for all Amiga like OS but I don't want to change things
which I can't test.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1970 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-08-02 09:19:07 +00:00
Yves Rizoud
2e5b97eb41
More fixes on layer preview. Layer buttons now activate on click instead of release.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1937 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-25 14:23:50 +00:00
Yves Rizoud
be96447f3b
Anim: Improved support of extreme durations (O included to 655.350s included); Adding frames now inherits parent's duration cleanly; Default duration now 100ms (instead of 1ms). Removed blanks in Time window and made tooltips more explicit for next/prev frame, thanks to 00ai99 for reporting.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1931 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-13 00:21:12 +00:00
Yves Rizoud
de6b3ac8d1
Toolbars now automatically switch to anim/layers when required
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1911 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-04 15:35:20 +00:00
Yves Rizoud
db50b4ebdc
More unification of layers and anim version: toolbars work. You can switch toolbars by right-clicking the icon from status bar: it proposes 'Anim' only while the current image has 1 layer (see Button_toggle_toolbar()). The animation-specific stuff (rendering...) isn't activated yet, see all the NOLAYERS places remaining. Also will need a trick for keyboard shortcuts to work on multiple buttons, and extra code on swap-to-spare, undo, redo, load etc. to sync toolbars with Image_type.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1909 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-27 23:19:23 +00:00
Yves Rizoud
2343dcb54c
Internal: Moved tooltips inside Buttons_pool, and Buttons_pool from globals.h to to windows.c/h for easier modification
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1908 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-27 01:36:40 +00:00
Yves Rizoud
cbcb7a6b8f
Issue 233: Added mouse panning. Default is 'space' for new users, others need pick a key in Help screen.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1901 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-01 00:56:21 +00:00
Adrien Destugues
781cda3a47
Add a distinctive icon for the fill (and color replace) tool.
...
Thanks to DawnBringer for icon drawing.
All skins use the same icon, feel free to draw something else for them.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1893 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-08 20:44:05 +00:00
Yves Rizoud
8fb16e7089
Re-integrated anim in trunk, fixing the 999-layer limit at the same time
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1841 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-10-19 23:35:56 +00:00
Franck Charlet
c1ede1f657
started to bring Mac OS X version up to date
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1751 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-03-10 18:29:53 +00:00
Yves Rizoud
1e6c4d22bc
Default gradients (or cycles) are now loaded from skins. Initialized all current skins so that range 0 is a white->black range, this way the grad shapes are immediately efficient. Still has a problem when loading an image in command-line.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1714 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-09 00:57:33 +00:00
Yves Rizoud
ce3181b230
Fixed compilation warnings: a few missing declarations, and 2 strange casts on WIN32-specific code.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1712 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-07 19:39:45 +00:00
Yves Rizoud
d0aaabf6b2
Merge of r1709 into trunk: Atari Falcon port
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1710 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-06 19:30:55 +00:00
Yves Rizoud
abadd59b12
Brush container saves and restores the right palette
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1702 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-01-30 00:17:47 +00:00
Yves Rizoud
7a3ae5824a
Merged the specifics of Caanoo 1.2 port by Pheel + Enabled TTF text on Caanoo
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1645 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-05 01:03:11 +00:00
Yves Rizoud
a59de659bd
Fix crash when using gradient-filled functions without entering Gradient screen before. Thanks to PheeL for report
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1644 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-11-05 00:27:21 +00:00
Yves Rizoud
de9f194b4a
Fix issue 391: backward memset
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1640 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-10-28 19:34:02 +00:00