2152 Commits

Author SHA1 Message Date
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
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
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
c6975afe94 prepare Makefile to allow build with SDL, SDL2 or another "video API"
update Visual C project as well
2018-07-02 11:38:51 +02:00
Adrien Destugues
9d46d1e90f Implement a more generic "rasters" mode for CPC
This is similar to mode 5, but with less constraints:
- All inks can have split rasters
- Split rasters have a min width of 32 pixels

Note that this is nowhere near enough to make sure the image will be
renderable (number of colors should be limited, unless there is a span
without rasters allowing to reload registers with new colors, and
moving from one pen to another also has a cost). The goal is to offer no
over-restriction (everything that can be shown on the real machine is
drawable). Additional constraints may be checked from a lua script that
will generate the code and data for displaying the picture.
2018-06-29 11:02:34 +02:00
Nic Soudée
1d71a0759f Restore original shortcuts of Flip, X-Flip. 2018-06-27 08:03:11 +00:00
Alexander Wilms
4ebcb44c63 Make installing to a PREFIX easier and add appdata 2018-06-27 08:02:35 +00:00
Thomas Bernard
2ff8048a2e version label : 2.6wip 2018-06-26 14:51:40 +02:00
Thomas Bernard
d0ab49f172 change recoil download url once again... 2018-06-26 13:52:11 +02:00
Thomas Bernard
fb91380662 fix error message in libraw2crtc.c 2018-06-26 13:05:40 +02:00
Thomas Bernard
9fce55e4bc fix comment for ELLIPSIS_CHARACTER 2018-06-26 12:33:57 +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
Thomas Bernard
b8ac772922 src_to7bits.py: use HEX format
also fixes line endings, insert "" when necessary
fix detection of // comments
2018-06-26 10:40:05 +02:00
Thomas Bernard
0fffe05848 Add tool to convert C sources to 7bit ASCII (except comments) 2018-06-26 09:53:31 +02:00
Thomas Bernard
d33dd775f7 libraw2crtc.c: translated error messages
Remove french accentuated characters
2018-06-26 09:53:31 +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
Thomas Bernard
bdaf4d6748 Fix en of line of WinInstaller_2*.nsi 2018-06-21 21:57:09 +02:00
Thomas Bernard
f8de20fc8d fix line endings of translate.pl 2018-06-21 21:56:47 +02:00
Thomas Bernard
3d922261e1 fix line endings in hexdump2grafxpal.py 2018-06-21 21:56:10 +02:00
Thomas Bernard
673d3836d2 Fix line endings and spaces in *.lua scripts 2018-06-21 21:54:15 +02:00
Thomas Bernard
6d08223660 update .gitattributes 2018-06-21 20:06:08 +02:00
Thomas Bernard
c546606652 travis-ci: add g++-mingw-w64-i686 package for libTIFF build 2018-06-11 10:24:39 +02:00
Thomas Bernard
f4c5c4bb1a Upgrade to recoil 4.3.0 2018-06-11 00:20:16 +02:00
Thomas Bernard
eb2a137f24 properly build libtiff with zlib and libjpeg 2018-06-11 00:13:09 +02:00
Thomas Bernard
4c9db787be gitlab-ci: add g++-mingw-w64-i686 package for libTIFF build 2018-06-11 00:13:09 +02:00
Thomas Bernard
63c39983fd lib TIFF version 3.4 => 4.0.9 2018-06-11 00:13:09 +02:00
Philip Linde
4122a3bfcf Use LF line endings for Readme_translate.txt
This is in order to work with "text=auto" in .gitattributes
2018-06-03 21:17:05 +00:00
Philip Linde
0936118568 Use separate operation-before storage for panning
This allows fast panning to be interrupt interrupting operations, like
color pick and click-zoom
2018-06-03 21:03:59 +00:00
Philip Linde
b8dbbf77fe Disallow panning mid-operation
This fixes issue #78
2018-06-03 21:03:59 +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
6a1f5e21ff add alternate URL for libtiff 2018-06-01 14:51:18 +02:00
Philip Linde
b6cebc4edf Fix attribute clash quantization in update
It would previously undershoot, not quantizing to an area fully
enclosing the unquantized area.

This solves issue #79
2018-05-31 19:43:33 +00:00
Philip Linde
efe9f8406f Add missing cursors for operations
Some new operations were added in
f2d579695cf78bf3e538383bd5843347be0c6acf, but the corresponding cursor
settings were not added to the CURSOR_FOR_OPERATION table. This resulted
in wrong cursors for the brush grab operation and probably several more
operations. This commit adds the missing cursor settings.

This fixes issue #75
2018-05-28 17:52:14 +02:00
Thomas Bernard
30be9d975e Use mingw32-strip when compiling with WIN32CROSS=1 2018-05-22 18:00:28 +02:00
Thomas Bernard
3a29a653ca remove a warning in WIN32 build 2018-05-22 17:55:00 +02:00
Thomas BERNARD
56a3c9566d Program_version SVN_revision are now const char[] 2018-05-22 17:34:52 +02:00
Thomas BERNARD
e4fc1f8e62 realpath.c: include limits.h on all platforms except WIN32 2018-05-22 17:29:59 +02:00
Thomas Bernard
f459b83cee
Add mirror for downloading RECOIL
sourceforge.net is not reliable
2018-05-16 20:04:05 +02:00
Thomas BERNARD
9ff06cbdef Automatically update the version stored in English.lproj/InfoPlist.strings
This are the versions displayed in Finder info and "about Grafx2"
2018-05-15 17:56:45 +02:00
Thomas Bernard
d85e5ee893
Fix build from an extracted grafx2-2.5.*-src.tgz
we check if we are in a GIT working tree and load revision
from version.c if we are not.

also includes grafx2-2.5*-src.tgz in artifacts
2018-05-15 15:33:15 +02:00
Thomas Bernard
0890c4490d
Default to CC=gcc but allow to define other values
so it is possible to
> CC=clang make        (environment)
or
> make CC=gcc-5        (command-line)
2018-05-15 15:33:15 +02:00
Thomas Bernard
d4746ea72e
Fix MacOS file case in include
<corefoundation/corefoundation.h>
should be
<CoreFoundation/CoreFoundation.h>

Many MacOS FS are case insensitives, but not all, so we must use
the correct case.

Issue detected by the MacPorts buildbot : https://trac.macports.org/ticket/56490
2018-05-15 15:33:15 +02:00
Thomas Bernard
5865be3383
fix LUACOPT when cross compiling for WIN32 2018-05-15 15:33:15 +02:00
boomlinde
2639dec301 Add -size commandline argument 2018-05-14 19:46:19 +02:00
Thomas Bernard
36ad344673 fix build of Win32 installer 2018-05-14 00:34:09 +02:00
Thomas Bernard
994b950616 properly set GIT_BRANCH when building on gitlab-ci
https://docs.gitlab.com/ce/ci/variables/README.html
CI_COMMIT_REF_NAME

Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-05-14 00:05:19 +02:00
Thomas Bernard
af22ed7333 upgrading freetype from 2.9 to 2.9.1 2018-05-13 23:52:36 +02:00