Yves Rizoud
0125c15209
Eliminated some alien tab characters in source file windows.c
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1294 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-01 23:17:51 +00:00
Adrien Destugues
59f2c45c43
Fixed stupid bug making the zoom drift to bottom right corner of the picture.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1292 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-02-01 19:31:32 +00:00
Adrien Destugues
027db7736a
-Fix best_color_nonexcluded again.
...
-Fix zoom position drifting when switching to spare
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1268 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 19:16:55 +00:00
Adrien Destugues
97ca0c65e3
Fix stupid bug. No one noticed yet :p
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1267 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-17 09:36:47 +00:00
Adrien Destugues
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.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1262 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-16 20:00:10 +00:00
Yves Rizoud
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.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1245 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-01-13 02:09:47 +00:00
Yves Rizoud
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).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1225 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-26 00:32:45 +00:00
Yves Rizoud
73ca64c9dc
Fixed issue 254: More room for filename in status bar
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1222 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-19 01:58:10 +00:00
Yves Rizoud
8c9321d98b
Fix issue 250: Alert box for image flattening is too wide. Implemented basic multi-line alert box (use explicit carriage returns).
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1220 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-19 01:24:10 +00:00
Adrien Destugues
c39f643808
Fix selecting colors in the menubar.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1208 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-16 22:04:11 +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
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
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
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
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
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
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
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
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...
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1136 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 21:20:42 +00:00
Adrien Destugues
5e3f845176
Center zoom to cursor. May be improved. Testing and reports welcome.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1135 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 19:31:14 +00:00
Yves Rizoud
fffb90dfaf
Proper word-wrapping in Verbose_error_message() box.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1133 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-11-01 14:28:48 +00:00
Yves Rizoud
036d8008cb
(internal) Skins have their own GUI color indices : avoids sharing/restoring MC_ colors
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1121 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 15:46:07 +00:00
Adrien Destugues
2b02ff505f
Moved skin preview to the Gfx struct so it is not overwritten if you cancel skin loading.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1115 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 11:19:44 +00:00
Adrien Destugues
a2fd796e59
Proper remapping on skin change in (almost) all cases. I commit this before breaking everything trying to fix the remaining issue...
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1114 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 10:44:09 +00:00
Adrien Destugues
f9dc259af5
-Update Doxyfile for newer doxygen version
...
-Fix some problems with doxygen comments
-Regenerate doxygen documentation
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1111 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-31 09:36:35 +00:00
Adrien Destugues
b0aa1dcbab
Added Ok and Cancel buttons in value requester. Don't do anything in palette screen if user enters strange value, not even a reduction to 256 as this drops unused colors.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1100 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 22:05:14 +00:00
Adrien Destugues
1934425972
Added "Brush Factory", allowing you to run a lua script to generate (or alter, untested yet) a brush.
...
Added a simple (and ugly) sample script.
This needs updates to the makefile for platforms other than linux.
TODO: add a listbox to select the script you want to run. Do we have a simple API to handle filelists yet ?
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1094 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-29 15:22:45 +00:00
Adrien Destugues
54a673f10f
Fixed some warnings spotted by vbcc on amiga.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1092 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-25 14:36:49 +00:00
Adrien Destugues
111fbbcf33
-Introduce new Requester_window to ask the user to enter a single value
...
-Reduce colors in the palette screen is now a dropdown for easy access to usual values. "Other" option opens a requester to enter a custom one if needed
-Some cleanup to make things a little more readable
-Build fixes after versionning system revert
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1090 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-24 13:42:59 +00:00
Yves Rizoud
953185205d
Internal support for variable-height menu
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1066 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-10-07 22:27:14 +00:00
Adrien Destugues
cc47a21eca
Added support for loading and saving c64 fileformats. Please test it :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1013 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-09-05 13:55:51 +00:00
Yves Rizoud
d6bf9413bf
Displayable tile grid (Issue 171)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1007 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-08-26 23:42:55 +00:00
Adrien Destugues
6698b78474
Removed useless debug print.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@950 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-24 08:13:31 +00:00
Adrien Destugues
8b5681eccb
-"fixed" warning about vars being used uninitialized (may happen if mouse cursor is totally offscreen or screen resolution is 0 pixel height, that is, never).
...
-Put some cursor drawing loops in the right order (loop on y, then on x) to make them a little more cache-friendly (and easier to read). I wrote them the wrong way, sorry!
-Some code formatting to 80 columns (not really important, don't worry about it)
-Added a sample neochrome picture to the pic-samples folder.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@923 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-16 07:04:39 +00:00
Yves Rizoud
7fc318a856
Experimental work on mouse locking with shift (issue 193). Consider unstable.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@921 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-07-15 18:50:25 +00:00
Yves Rizoud
f683d9ff2e
GUI skins: The loader now recovers cleanly from errors and displays a message that says what's the problem in the image.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@881 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-21 18:34:57 +00:00
Yves Rizoud
1b2fa69f6a
GUi skin elements are allocated on the heap
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@871 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-16 19:43:37 +00:00
Yves Rizoud
33bb5622c0
Fixed bad display and possible crash, when the zoomed area showed more than 512 pixels (requires resolution >1600)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@824 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-06-01 18:47:08 +00:00
Yves Rizoud
8f9dd6a68e
Frame around BGcolor in menu palette: Now handles the case where the same color is FG and BG color
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@797 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 17:18:12 +00:00
Adrien Destugues
402df48b7f
Removed some unused functions (kindly pointed out by the great ncc tool)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@796 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 14:47:09 +00:00
Adrien Destugues
fc1786a077
Frame the backcolor with a dark dotted line.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@795 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-10 14:17:13 +00:00
Yves Rizoud
27506d0649
Removed tab characters
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@789 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-07 23:43:00 +00:00
Adrien Destugues
2fa494f77e
Removed postal address of the FSF since it's moving faster thant the website :)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@779 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-05 18:19:37 +00:00
Adrien Destugues
780bf3a751
-Fixes issue 152 (color picker cursor)
...
-Switches FreeBSD to cumulated update method, they shouldn't need macosX tricks for that they are using X11 :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@767 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-03 13:02:25 +00:00
Yves Rizoud
e5f948076b
New: Picture effects screen, resizes / mirrors / rotates image (Issue 73)
...
New: Distort brush (Issue 34)
New: Pixel scaler "Triple" for 3x3 zoom (Issue 147)
New: Pixel scaler "Quadruple" for 4x4 zoom (Issue 151)
New: Pixel scaler "Wide2" for 4x2 zoom (Issue 148)
New: Pixel scaler "Tall2" for 2x4 zoom (Issue 149)
Fix of very old bug: Resizing the image didn't mark the image 'modified since last save'
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@763 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-05-02 16:44:06 +00:00
Yves Rizoud
1eeed5aca4
Added some missed translations in source code.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@755 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2009-04-21 17:48:26 +00:00