924 Commits

Author SHA1 Message Date
Yves Rizoud
c6a783c741 Last try at multiplatform Makefile. If this don't work, revert my change and I'll add my windows-only packaging instructions as a new make target.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1205 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-16 00:35:19 +00:00
Yves Rizoud
af8e34c0d2 Updated credits
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1204 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-16 00:22:09 +00:00
Yves Rizoud
0dc74a7585 Added Jamon's skin and font to svn.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1203 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 23:51:20 +00:00
Yves Rizoud
951600da1e Fix crashing bug when you click a layer button, hold it, and release past the edges of the layer buttons. Fix a display bug when layer bar is hidden and you use the shortcut actions.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1202 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:34:27 +00:00
Yves Rizoud
e2f4ed00f1 Fix a mouse dropping remaining when clicking layer color. Made the button pick current transp color when left-clicking, and set it on right-click.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1201 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:24:12 +00:00
Adrien Destugues
8612aa7303 More makefile fixes...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1200 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:10:39 +00:00
Adrien Destugues
2d0cd44841 Fixes to the makefile :
-sed for creating pversion failed with bash.
-"else ifeq" does not work with morphos make.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1199 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 22:06:18 +00:00
Adrien Destugues
853d2b6cad Two buttons were reversed in the layer bar.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1197 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 21:09:02 +00:00
Adrien Destugues
910e2248cf Fix some palette display bugs (wrong position and size of cells) that happens when the menu zoom factor is bigger than 1. Introduced with the new stackable menus system.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1196 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 20:58:06 +00:00
Adrien Destugues
026e9c358e Fix bmp saving.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1195 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 20:56:08 +00:00
Yves Rizoud
60d85deb41 Makefile fixes for packaging
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1194 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 19:40:37 +00:00
Yves Rizoud
883653480b Working layer bar. Champagne!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1193 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 19:24:04 +00:00
Yves Rizoud
353f5dbbd2 Display of layer icons with auto-size (not updated automatically yet, and no action on click)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1192 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 18:18:21 +00:00
Yves Rizoud
f7a5b23541 Support for textured toolbars of variable length. Grafx2 repeats the last two columns, so the dither pattern of Modern skin works.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1191 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-15 16:43:59 +00:00
Yves Rizoud
22b5dc56e5 Loading of Layer icons (unused atm.)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1189 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 23:04:06 +00:00
Adrien Destugues
528a6f1b53 -Update help for hide button
-Make F10 key show/hide the whole menu instead of just the layerbar.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1188 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 20:20:51 +00:00
Adrien Destugues
ac8b8748a7 Fixup help following buttons reordering.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1187 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 20:16:23 +00:00
Yves Rizoud
b558980cce Missing files
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1186 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 19:26:06 +00:00
Yves Rizoud
04f7c56179 Some layer functions plugged to layer menu bar
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1185 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 19:19:05 +00:00
Yves Rizoud
01ca8d1565 Fix missing remapping on the new UI elements
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1184 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 18:42:16 +00:00
Yves Rizoud
33ef5cfde2 Fix on loading all formats 'misc': Marking some formats 'Backup_done=0' didn't work because this flag was specialized for importing and exporting palettes (a modification of the image), without updating the image on screen or remembering the file name.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1183 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 17:16:46 +00:00
Adrien Destugues
17d3e62398 Added layer toolbar buttons
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1182 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 16:54:43 +00:00
Adrien Destugues
7d1f8cd8da Fix a drawing bug when selecting/deselecting buttons in the menu.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1181 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 16:32:48 +00:00
Yves Rizoud
a24557ff98 Fix compilation warnings in file formats
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1180 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 15:36:52 +00:00
Adrien Destugues
90595e3af6 "Hide" button now toggles the layerbar. Right-click works as before. Enjoy the layerbar !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1179 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 14:11:24 +00:00
Adrien Destugues
6a4ba08343 Support for stacked menubars. May still be incomplete...
TODO : add a way to hide and show them...


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1178 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-14 10:25:23 +00:00
Yves Rizoud
3008540998 Remapped skins for the black color to be zero. This is better on startup because default image is filled with 0, == the BG color. Better for grabbing brushes.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1173 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 20:05:27 +00:00
Adrien Destugues
8923011906 Split buttons.c as it was > 5000 lines. It's still big however, but I had no other idea to split it porperly. Let's see that later.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1172 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 19:27:57 +00:00
Adrien Destugues
2dd1b85fc4 Split operatio.c as it was more than 5000 lines long, making it annoying to find your way inside.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1171 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 19:06:48 +00:00
Adrien Destugues
eb917ce0ed Fixed stupid bug : it was not possible to rotate a brush 180° from the brush transform menu if hte height was even !!?
Also use proper NAN value if it exists when rotating a brush (we use some floats there and it's better to do it this way)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1170 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 18:17:42 +00:00
Adrien Destugues
792abd4866 Some cleanups
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1169 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 17:44:51 +00:00
Adrien Destugues
7283412da2 Fix a memory leak spotted by cppcheck.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1168 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 15:39:53 +00:00
Adrien Destugues
395c225463 -Disabled latex generation for doxygen (was weongly enabled because of previous cleanup)
-Removed version numbers and date from doxygen html footer so the files are no longer all modified when regenerating


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1166 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 14:22:58 +00:00
Adrien Destugues
3de1d9f883 -Some doxygening
-Removed useless parts of the doxyfile and enabled DOT to generate callgraph and includegraphs. Use \callgraph or \callergraph where you think it'd be nice to have.
-Replaced Num2str with a call to sprintf. Less code is better !


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1165 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 13:51:54 +00:00
Yves Rizoud
c3e087fa7e Merged back the layers branch into trunk. Common version now!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1163 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-11 00:03:07 +00:00
Yves Rizoud
c150be2664 [layers] merged in the recent changes from trunk
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1162 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-10 20:35:09 +00:00
Adrien Destugues
e6e698c2bd Added vim modelines to all files.
Set them to 2-space indent, I hope this is ok.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1161 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-10 20:08:11 +00:00
Adrien Destugues
2239adbd58 Free memory properly when saving a cpc .scr.
Also allow to save a brush in this format (in "screen" mode).


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1160 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-08 13:22:00 +00:00
Yves Rizoud
45f04503c6 Fix libraw2crtc for compiling on strict C99
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1159 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-07 21:29:20 +00:00
Adrien Destugues
74f723c3b0 Added save function for amstrad cpc scr images. No load available yet, and the code was pretty quickly hacked. Thanks to CloudStrife for providing libraw2crtc.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1158 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-07 16:45:22 +00:00
Adrien Destugues
98306a8f21 Linking with -lm is needed on linux to support bold, an experimental linker from the binutils.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1154 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-06 16:22:38 +00:00
Adrien Destugues
045d8714ad Removed leftover debug.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1150 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-04 18:58:09 +00:00
Adrien Destugues
1141b0ac20 No longer crash when switching to spare (introduced by recent zoom to cursor change)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1146 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-03 22:40:46 +00:00
Adrien Destugues
b6d6fe19b6 Add option to show the grid in grid menu (not only snapping)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1144 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-02 20:15:23 +00:00
Adrien Destugues
2ba2b314d5 Fix build.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1143 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-02 20:01:40 +00:00
Adrien Destugues
db8111373d English comments and notes.
I found some more possible improvements for performance...


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1142 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-02 19:27:12 +00:00
Yves Rizoud
110a7bdd58 [layers] continuted work on no-layer option. No more crash.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1141 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-02 00:10:59 +00:00
Yves Rizoud
3ede1f3a56 [layers] NOLAYERS option at compile time. Unfinished.
git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1140 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 23:22:43 +00:00
Adrien Destugues
7efea41231 Be more subtle: load immediately if the user pressed enter.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1139 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 22:05:08 +00:00
Adrien Destugues
d41b612931 File selector no longer exits event loop when you enter a filename and exit the textfield.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1138 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 22:00:14 +00:00