1485 Commits

Author SHA1 Message Date
Yves Rizoud
21659e9aee Reverted Dpaint skin, I accidentally replaced some time ago with one of my variants
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1949 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-05 23:56:10 +00:00
Yves Rizoud
3684509dc6 Fix the elusive crash that happened in anim mode after resizing the image; Thanks to iLKke again.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1948 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-05 23:48:22 +00:00
Yves Rizoud
d29bbee941 Fix an error when loading layered image that used a transparent color different from zero ,which resulted in corrupted image. Thanks iLKke!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1947 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-05 16:01:14 +00:00
Yves Rizoud
bbd0d0114c Fix an error in previous commit. Zero warnings on Windows too (Mingw, gcc 4.4.1-TDM)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1946 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-03 22:46:04 +00:00
Yves Rizoud
d8bb1e1d55 Fix some mostly harmless warnings and re-generated dependencies. Now compiles with zero warnings on Linux (gcc 4.1.2)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1945 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-03 21:32:59 +00:00
Yves Rizoud
6316fc2add Fix second part of issue 459 : In anim mode, polybrush-grab with the right mouse button didn't clear the cut area.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1944 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-04-09 14:55:44 +00:00
Yves Rizoud
064bbebc5b Fix part of issue 459: In anim mode, Color-replacer didn't refresh the screen
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1943 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-04-08 14:45:56 +00:00
Yves Rizoud
020e57846b Layer preview now only appears if there's at least 2 layers. Fixed the preview not reappearing after using a keyboard shortcut (ex: scrolling with arrow keys)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1942 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-04-07 19:31:20 +00:00
Yves Rizoud
4fe4ccd7b0 Added safeties for Mode5: Mode will only switch on if the image has the required layers and a compatible width.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1941 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-30 22:27:09 +00:00
Yves Rizoud
95482d3f17 Tilemap settings window: removed empty space, and the mode is switched ON if you exit this window using the OK button
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1940 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-30 22:06:37 +00:00
Yves Rizoud
c5f9bb354d Tilemap mode: added a missing tile refresh after using the scroll(pan) tool. Added a few Doxygen comments.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1939 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-30 21:46:54 +00:00
Yves Rizoud
a137e063f0 Fix a crash that happened in Palette screen when right-clicking near top of screen: it opened the 'Copy/Paste' dropdown outside of screen edge. Now this dropdown menu only appears when you click in the palette area
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1938 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-25 14:44:29 +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
cd5b3346b0 More adjustments of layer preview : images less wide than a layer button are not zoomed more than normal size, and a max height is applied (Screen_height/4)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1936 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-24 19:50:06 +00:00
Yves Rizoud
c6479d22f6 Layer pop-up preview now has higher resolution (bypasses pixel ratio and menu zoom)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1935 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-24 18:55:49 +00:00
Yves Rizoud
99ce514ce8 Fix a case where the image could be in layer mode while the anim toolbar is visible. Note that from now on, if main and spare are single-image, changing the type of one will not change the type of the other.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1934 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-15 19:51:19 +00:00
Yves Rizoud
55f4884e34 Fix a few compilation warnings on Linux; Fix a possible bug in Mode5 loader; Removed a pair of debug printfs in realpath.c
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1933 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-14 19:17:35 +00:00
Yves Rizoud
30e8079236 Fix crash when using Magnifier shortcut while the mouse is on a layer button (issue 480)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1932 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-13 19:55:51 +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
Adrien Destugues
8081c9527d Quick fix for realpath needing PATH_MAX following Haiku patch.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1930 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-12 21:26:13 +00:00
Yves Rizoud
7d6d3ad875 Fix the Tilemap mode : When grid was visible, the copied tiles were erasing the grid. Now the grid is refreshed as needed.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1929 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-11 17:41:52 +00:00
Yves Rizoud
145c9545e7 Fix the 'FX' button that didn't refresh its state when swapping pages between an image with Tilemap ON (button should be highlighted) and an image with Tilemap OFF (button not highlighted)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1928 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-11 16:50:28 +00:00
Yves Rizoud
5af6f7bd4d Fix crash of layer preview in some sizes, and removed overdraw
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1927 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-09 20:06:55 +00:00
Yves Rizoud
747f9e8526 Fix most of issue 462 : Inconsistent directories in file selectors for image and brush.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1926 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-09 01:18:23 +00:00
Adrien Destugues
9ca899355c Fix zoom factor for layer preview.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1925 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-08 19:04:44 +00:00
Adrien Destugues
dcffab6c79 Fix layer preview :
* Avoids running its own event loop and intercepting keyboard shortcuts
 * Show all the layers (lined up with the buttons)
 * Do not draw outside of screen when picture has strange dimensions.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1924 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-08 18:56:39 +00:00
Yves Rizoud
b435ff2582 Added minimal support of ANIM format as part of the LBM loader : The first frame can be read.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1923 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-07 19:44:37 +00:00
Yves Rizoud
341fa77a93 Fix the skin 'scenish' that was broken recently, and fix the new 'Fill' mouse cursor (Issue 457) in all skins to use the small version : the bigger one gets clipped as Grafx2 only uses 15x15 icons internallly.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1922 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-07 19:30:58 +00:00
Yves Rizoud
d34a2abc37 Added forgotten change of standard INI file, oops. This probably caused the settings for Tilemap mode to not be saved.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1921 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-07 19:27:30 +00:00
Adrien Destugues
af8316c279 * Second attempt at fixing #448.
* Fix another bug with realpath in Haiku (relying on nonstandard behaviour)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1917 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-06 21:05:54 +00:00
Yves Rizoud
8852f59a95 Loading a GIF animation now shows first image instead of last image
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1916 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-04 17:26:48 +00:00
Yves Rizoud
641be48aad Removed last occurrence of 'NOLAYERS' and refreshed Makefile dependencies
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1915 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-04 17:10:26 +00:00
Yves Rizoud
a292f4e356 Fileselector : Now only previews frame 1 of animations, instead of loading everything
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1914 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-04 17:03:46 +00:00
Yves Rizoud
20055dca31 Fix loading of GIF animations that use the 'restore to BGcolor' disposal method.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1913 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-04 16:53:40 +00:00
Yves Rizoud
4386f8d679 Fix 'unselect' appearance of some anim buttons. Fix display of mouse cursor when opening windows 'Anim Time' and 'Layers'
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1912 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-04 15:57:39 +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
e73eb2786a Animation now has correct visual display and input feedback. Loading GIF guesses it's an anim if it loops, layers otherwise : Some rare non-looping GIF anims (usaully broken) will be misunderstood as layered. Editing of anims and layers seems flawless and stable. Still requires an auto-switch to the best toolbar (anim/layers) when relevant, but you can already switch manually.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1910 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-03-02 23:19:47 +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
d38f5ee981 CPC mode 5 : replaced the global Constraint_mode by a state (Image_mode) in each versioned T_Page: This allows keeping it sane when swapping to Spare, and when Undo/Redoing. Also fixed the first page when program starts, it was unnecessarily allocating pointers for the maximum number of layers(16)/frames(999)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1907 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-27 00:47:18 +00:00
Yves Rizoud
55d0889bc8 Change rendering system to use function pointers, see Issue 31 c38 : preliminary work to make the same executable handle Layers or Anims. Fixed an old issue where Lasso-ing a brush with right mouse button wouldn't erase cleanly (visual). Fixed an old issue where picking colors in layer 5 would not 'see' through layers.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1906 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-22 23:47:53 +00:00
Franck Charlet
8ea1ab7fc8 fixed makefile for macosx again
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1905 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-20 19:56:52 +00:00
Adrien Destugues
b92d66911f Should fix #448: make sure we go to the main file directory when wqloading one at startup.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1904 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-15 18:34:25 +00:00
Yves Rizoud
f77f38e238 When running new version of Grafx2 for first time, new shortcuts take priority over user's. Useful for the space=pan (issue 233) that replaces default space=left-click. Also improved pan to display updated xy coords.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1902 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-02-03 23:32:32 +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
46f2ec9475 Patch by Syllable software to complete Syllable support. Thanks!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1900 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-15 13:52:31 +00:00
Adrien Destugues
7137e1fc05 Strings with more than 24 chars were not properly null-terminated before sending them to Print_in_menu, causing random data to appear in the status bar since Print_in_menu will print more chars if there's space.
Thanks to DawnBringer for noticing!

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1899 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-11 18:29:46 +00:00
Adrien Destugues
941817b915 More fixes (still not ok...)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1897 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-08 21:52:35 +00:00
Adrien Destugues
44d8a23fbe More improvements to the makefile to get everything in. But still not working...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1896 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-08 21:49:26 +00:00
Adrien Destugues
d74649ffbc Make sure XOR helpers are shown even after drawing the first circle/ellipse
Update helpfile credits.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1894 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-01-08 21:16:46 +00:00