ae873551ff
-Fixed and extended the brush factory API. The factory now does a backup before running a script. -Updated the convolution sample factory to do a proper convolution, reading from the backup. There is still no colormapping.
Adrien Destugues
2010-01-16 20:00:10 +00:00
247d7f54fd
Compilation adjustment for win32. I suspect the other targets also need something for lua.
Yves Rizoud
2010-01-16 18:40:38 +00:00
b62f86bf45
Fixed double free when loading 24b image. Yves, it is not needed to check if a pointer is NULL before freeing it, free(NULL) is okay and will not crash. However, each time you free something, you should put it back to NULL : -It makes sure the program will crash on next access to it (even if the memory chunk is reallocated) -It makes it easier to debug things, a NULL pointer is freed data.
Adrien Destugues
2010-01-16 17:48:14 +00:00
c1800bb42d
Sanity checks in the pixel ratio loading.
Adrien Destugues
2010-01-16 17:27:15 +00:00
655116bd37
-Save pixel ratio in infile -Fix a bug if a wrong grid xor value was set (was mostly harmless) -Some cleanup.
Adrien Destugues
2010-01-16 16:31:03 +00:00
70a61a07ef
-Linux now uses pkgconfig to find infos about lua. This may break other platforms -No longer enforce lua5.1 as the include dir for lua files. --Cette ligne, et les suivantes ci-dessous, seront ignorées--
Adrien Destugues
2010-01-16 15:40:05 +00:00
235d556296
Patch to XCode project by Tomasz, to at least get GrafX2 to a buildable state. Thanks !
Adrien Destugues
2010-01-16 13:48:14 +00:00
3b3bb3b2ec
-Fixed brush factory : it was unable to draw on the picture ! -Added a script that do a convolution of the image with a matrix. Not sure it works perfect yet.
Adrien Destugues
2010-01-15 21:44:34 +00:00
3294a304bf
Issue 275: Fixed cursor 'moving by itself' by disabling joystick control on desktop platforms
Yves Rizoud
2010-01-15 19:47:27 +00:00
75226f6438
This is apparently a build fix for macosX
Adrien Destugues
2010-01-15 19:37:57 +00:00
9cb3f7a70d
Issue 284:Made the UI zoomed by x2 maximum, by default (Menu_ratio = -2 in gfx2.ini). Fix issue 286.
Yves Rizoud
2010-01-15 19:19:01 +00:00
e351605a24
Reverted the icon-loading code to SDL_image, using more solid code to handle both 8bit and hi-color icons
Yves Rizoud
2010-01-15 02:40:32 +00:00
84ac0df49c
Issue 285: For skins and fonts, replaced calls to SDL_image with our own image-loading functions. Also fixed the generic loader that was updating the screen palette even when not useful.
Yves Rizoud
2010-01-15 01:48:33 +00:00
8bdd163ede
Huge rewrite of the file loading/saving system. Normally safer in case of problem. Added incremental safety backups at regular intervals in the 'application data' directory (Windows) or $HOME/.grafx2 (unix). Keeps 8 files, saves every 30-60s and/or every 10-30 clicks.
Yves Rizoud
2010-01-13 02:09:47 +00:00
c93a9bd1c1
Mask and Stencil shortcuts were reversed.
Adrien Destugues
2010-01-12 23:14:38 +00:00
ca6a10216b
-Some support for TRU64 unix. I don't have SDL on this machine so I'm not sure how far I can get it...
Adrien Destugues
2010-01-12 12:26:27 +00:00
8d01995a80
Fix makefile for make install under linux.
Adrien Destugues
2009-12-27 16:30:06 +00:00
cf54bb5f29
Implemented back the Mask mode. Fixed a historical bug of memory violation if you used Mask with images of different sizes (would crash all platforms except DOS)
Yves Rizoud
2009-12-07 20:39:32 +00:00
141a523c46
Fix issue 271: Loading 16/24/32bit images wasn't working since the layers. oops.
Yves Rizoud
2009-12-03 02:14:31 +00:00
9507cf8df2
Fixed missing include and const in brush factory.
Adrien Destugues
2009-12-02 12:58:24 +00:00
45524de886
Temporarily disabled Mask which is not implmented (it would crash on each use). Fixed instant crash in 'Copy to spare / Palette and remap' by doing actual layer-aware implementation
Yves Rizoud
2009-12-02 00:41:37 +00:00
7d657e0c02
Fix issue 264: Undo/Redo/kill can leave no active or visible layer
Yves Rizoud
2009-12-01 23:51:34 +00:00
7645d0844a
Fix weird mixing of layers from main and spare pages (Issue 259)
Yves Rizoud
2009-12-01 23:05:22 +00:00
0a7bd889d1
Better command-line handling (issue 266) contributed by Pasi Kallinen
Yves Rizoud
2009-11-29 18:25:14 +00:00
224902e18e
Some endianness fixes in load/save of formats KCF, IMG, CEL, IMG, BMP. Now all file operations are done directly with the right endianness.
Yves Rizoud
2009-11-26 23:34:51 +00:00
3538abadb9
Added support for hiding the main toolbar, keeping the status line and optionally layer bar. Made it the default behaviour of F10 / right-click 'hide', for testing and feedback. (IMO it's less unforgiving for new users, and we can provide alternative shortcut with old behaviour for veterans).
Yves Rizoud
2009-11-26 00:32:45 +00:00
03cbcee632
Fix issue 258: Crash on non-Windows platforms when saving GIF
Yves Rizoud
2009-11-25 02:22:32 +00:00
0be1f7bff1
-Load Lua's math library when running factory scripts, as this makes them a lot more useful (sin, cos, ...) -Don't crash when Lua fails loading a script but does not return an error message.
Adrien Destugues
2009-11-24 17:56:05 +00:00
73ca64c9dc
Fixed issue 254: More room for filename in status bar
Yves Rizoud
2009-11-19 01:58:10 +00:00
061bfccae6
Second fix for issue 252:Layer buttons redrawn over the tool bar when layer bar is hidden. An uninitialized variable wasn't detected and made the fix randomly successful.
Yves Rizoud
2009-11-19 01:36:30 +00:00
8c9321d98b
Fix issue 250: Alert box for image flattening is too wide. Implemented basic multi-line alert box (use explicit carriage returns).
Yves Rizoud
2009-11-19 01:24:10 +00:00
776da3980d
Fix issue 251: random transparent color for new layers
Yves Rizoud
2009-11-19 00:13:12 +00:00
21e3cfe959
Fix too long line in help for contour fill.
Adrien Destugues
2009-11-18 21:28:02 +00:00
4891065b44
This file is not needed anymore since a long time.
Adrien Destugues
2009-11-17 21:53:08 +00:00
2bf0e76a7c
Some cleanup of the misc folder to hold data for other platforms. Added an icon for morphos It would be nice if .ico, .gif and other datafiles moved to this misc folder, eventually .ini and .cfg too.
Adrien Destugues
2009-11-17 21:52:42 +00:00
825142eabb
This is actually not needed with an up to date and properly installed sdk.
Adrien Destugues
2009-11-17 21:22:36 +00:00
a055a9a51e
Fix buggy drawing in menu when using shortcuts.
Adrien Destugues
2009-11-17 21:07:03 +00:00
c39f643808
Fix selecting colors in the menubar.
Adrien Destugues
2009-11-16 22:04:11 +00:00
5671297542
-Build "fix" for morphos -Makefile fix for linux. This one should work ok on linux and windows as it did before, but not on amiga. The amiga packing procedure is quite different anyway, so I think that's ok.
Adrien Destugues
2009-11-16 21:59:05 +00:00
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.
Yves Rizoud
2009-11-16 00:35:19 +00:00
0dc74a7585
Added Jamon's skin and font to svn.
Yves Rizoud
2009-11-15 23:51:20 +00:00
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.
Yves Rizoud
2009-11-15 22:34:27 +00:00
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.
Yves Rizoud
2009-11-15 22:24:12 +00:00
8612aa7303
More makefile fixes...
Adrien Destugues
2009-11-15 22:10:39 +00:00
2d0cd44841
Fixes to the makefile : -sed for creating pversion failed with bash. -"else ifeq" does not work with morphos make.
Adrien Destugues
2009-11-15 22:06:18 +00:00
853d2b6cad
Two buttons were reversed in the layer bar.
Adrien Destugues
2009-11-15 21:09:02 +00:00
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.
Adrien Destugues
2009-11-15 20:58:06 +00:00
60d85deb41
Makefile fixes for packaging
Yves Rizoud
2009-11-15 19:40:37 +00:00
883653480b
Working layer bar. Champagne!
Yves Rizoud
2009-11-15 19:24:04 +00:00
353f5dbbd2
Display of layer icons with auto-size (not updated automatically yet, and no action on click)
Yves Rizoud
2009-11-15 18:18:21 +00:00
f7a5b23541
Support for textured toolbars of variable length. Grafx2 repeats the last two columns, so the dither pattern of Modern skin works.
Yves Rizoud
2009-11-15 16:43:59 +00:00
528a6f1b53
-Update help for hide button -Make F10 key show/hide the whole menu instead of just the layerbar.
Adrien Destugues
2009-11-14 20:20:51 +00:00
ac8b8748a7
Fixup help following buttons reordering.
Adrien Destugues
2009-11-14 20:16:23 +00:00
04f7c56179
Some layer functions plugged to layer menu bar
Yves Rizoud
2009-11-14 19:19:05 +00:00
01ca8d1565
Fix missing remapping on the new UI elements
Yves Rizoud
2009-11-14 18:42:16 +00:00
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.
Yves Rizoud
2009-11-14 17:16:46 +00:00
90595e3af6
"Hide" button now toggles the layerbar. Right-click works as before. Enjoy the layerbar !
Adrien Destugues
2009-11-14 14:11:24 +00:00
6a4ba08343
Support for stacked menubars. May still be incomplete... TODO : add a way to hide and show them...
Adrien Destugues
2009-11-14 10:25:23 +00:00
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.
Yves Rizoud
2009-11-11 20:05:27 +00:00
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.
Adrien Destugues
2009-11-11 19:27:57 +00:00
2dd1b85fc4
Split operatio.c as it was more than 5000 lines long, making it annoying to find your way inside.
Adrien Destugues
2009-11-11 19:06:48 +00:00
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)
Adrien Destugues
2009-11-11 18:17:42 +00:00
792abd4866
Some cleanups
Adrien Destugues
2009-11-11 17:44:51 +00:00
7283412da2
Fix a memory leak spotted by cppcheck.
Adrien Destugues
2009-11-11 15:39:53 +00:00
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
Adrien Destugues
2009-11-11 14:22:58 +00:00
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 !
Adrien Destugues
2009-11-11 13:51:54 +00:00
c3e087fa7e
Merged back the layers branch into trunk. Common version now!
Yves Rizoud
2009-11-11 00:03:07 +00:00
c150be2664
[layers] merged in the recent changes from trunk
Yves Rizoud
2009-11-10 20:35:09 +00:00
e6e698c2bd
Added vim modelines to all files. Set them to 2-space indent, I hope this is ok.
Adrien Destugues
2009-11-10 20:08:11 +00:00
2239adbd58
Free memory properly when saving a cpc .scr. Also allow to save a brush in this format (in "screen" mode).
Adrien Destugues
2009-11-08 13:22:00 +00:00
45f04503c6
Fix libraw2crtc for compiling on strict C99
Yves Rizoud
2009-11-07 21:29:20 +00:00
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.
Adrien Destugues
2009-11-07 16:45:22 +00:00
98306a8f21
Linking with -lm is needed on linux to support bold, an experimental linker from the binutils.
Adrien Destugues
2009-11-06 16:22:38 +00:00
7efea41231
Be more subtle: load immediately if the user pressed enter.
Adrien Destugues
2009-11-01 22:05:08 +00:00
d41b612931
File selector no longer exits event loop when you enter a filename and exit the textfield.
Adrien Destugues
2009-11-01 22:00:14 +00:00
1406e74f56
Load and save palettes using JASC "standard" format. Still load old palettes from DOS Grafx2, but now we handle full color :)
Adrien Destugues
2009-11-01 21:55:54 +00:00
a725f0035e
Use an int to compute the zoom to cursor instead of a short for better precision and more security (using a short could lead to overflows on big screens/pictures). However there is still a drift, if you zoom in/out a lot of times without moving the mouse you'll notice that the zoom window moves to the down/right corner of the picture. Might be because of the truncate done on the fixed point calculations, but i'm not sure...
Adrien Destugues
2009-11-01 21:20:42 +00:00
5e3f845176
Center zoom to cursor. May be improved. Testing and reports welcome.
Adrien Destugues
2009-11-01 19:31:14 +00:00
119e679e32
[layers] Adapted lua bindings to draw/read in current layer (untested)
Yves Rizoud
2009-11-01 14:31:36 +00:00