5ee0b4943f* Use SDL_WaitEvent instead of SDL_PollEvent. * To avoid the program getting 'locked' when there is no user input (sliders, colorspray), we use a timer that queues events to make grafX2 act (and refresh the screen)
Adrien Destugues
2010-08-06 15:40:01 +00:00
bce1c9d7ee* Fix using fullscreen mode with a tablet.
Adrien Destugues
2010-08-06 13:38:49 +00:00
9070ca9b5b* Smarter function to guess the menu colors. It is now done by selecting colors from their luminance and saturation. Thisshould give better results on low-color pictures where there is only one grey tone. It was really annoying to work on amstrad CPC pictures.
Adrien Destugues
2010-08-05 20:03:28 +00:00
67ceccd2a3* Add a work in progress function to handle native fileselectors. Not plugged to anything yet.
Adrien Destugues
2010-08-05 17:53:27 +00:00
aaef37bd40* Add support for drag and drop of a picture into grafx2 windows WARNING : it will not ask to save changes before. I believe it should work like the fileselector but could not find where to plug it there...
Adrien Destugues
2010-08-02 10:21:59 +00:00
378555d943Palette: Fix bad placement of color count after recent change. Removed the 'Preset' function entierely (default pa
Yves Rizoud
2010-08-01 19:41:52 +00:00
8df74d8e6bPalette screen: Separated the 'Used' buttons in two, one that shows the marks and the other that shows histogram. MAde 'Sort' a dropdown button.
Yves Rizoud
2010-07-29 19:18:12 +00:00
e6ced5f6a0New direct shortcuts for resizing brush (Issue 319)
Yves Rizoud
2010-07-08 23:42:48 +00:00
272cc59395Added a key shortcut to open Brush factory (Lua scripts), and another one to repeat the last used Lua script. Updated helpfile. At the moment no key is affected by default, so if DawnBringer has a preference...
Yves Rizoud
2010-07-06 21:48:38 +00:00
d459f3f824Palette: Tags on used colors (click 'Used' button)
Yves Rizoud
2010-06-29 23:29:17 +00:00
60d253d21fPalette: Fix badly positioned color count after Reduce
Yves Rizoud
2010-06-29 17:59:59 +00:00
4f71dc4bbaUpdate to the Aurora skin by DawnBringer
Yves Rizoud
2010-06-26 10:52:14 +00:00
ce6aa4cad6Palette: Can now input color by typing RGB value in hex (Issue 299)
Yves Rizoud
2010-06-24 23:56:06 +00:00
7a46da32d5Support for hexa text input (internal)
Yves Rizoud
2010-06-24 19:31:26 +00:00
d5a772f5aeChanged layout of the palette screen, in preparation for issue 299: direct input of #rrggbb colors. Fixed the position of slider gradations, that weren't at 1/4, 1/2 and 3/4. Now the Reduce button works with either mouse button.
Yves Rizoud
2010-06-23 22:27:22 +00:00
1a76338e3bFix issue 360: Many (ancient) bugs in GIF Loading: Warped palette when reading a GIF with sorted global palette, or an interlaced GIF with a local palette (in both cases, data ordered RGB RGB RGB is read RRR GGG BBB), or any GIF with a local palette (first byte of palette was chopped off, shifting everything by 1 byte).
Yves Rizoud
2010-06-22 21:29:45 +00:00
d4d1975322Palette: contextual menu on RMB for Copy/Paste
Yves Rizoud
2010-06-19 19:50:05 +00:00
8160a8ab90Implemented basic Cut-and-paste in Palette: Ctrl-C / Ctrl-V. It doesn't use the clipboard, but you can copy in one page and paste in another.
Yves Rizoud
2010-06-19 19:11:37 +00:00
93c711205cFix a missing refresh on buttons display when the main tool bar is hidden.
Yves Rizoud
2010-06-19 13:47:02 +00:00
ca1dc98d19Fix the keyboard 'click emulation' that wasn't working ...since v2.1 (included). Thanks to spratek for report.
Yves Rizoud
2010-06-18 14:52:41 +00:00
80e2678306Removed debug data from SDL_image.dll and libpng14-14.dll (GNU strip)
Yves Rizoud
2010-06-17 21:42:30 +00:00
9b3ce1cc8aFix makefile for new version of libpng
Yves Rizoud
2010-06-17 21:38:24 +00:00
06f165cec8Re-built SDL_image 1.2.10 with the right dependency on libpng14-14.dll
Yves Rizoud
2010-06-17 20:53:41 +00:00
95665a99dfNew: Alpha drawing mode, in 'Translucency'. Drawing AA Text automatically activates it. Fixed a problem in non-AA text that made it pick wrong colors if the current skin wasn't using white and black.
Yves Rizoud
2010-06-17 18:06:09 +00:00
ab657b018eFix issue 356: Crash when using font size > 99
Yves Rizoud
2010-06-15 19:34:08 +00:00
ddc0c3448dSupport for loading 1bpp GIF. At last!
Yves Rizoud
2010-06-15 19:02:43 +00:00
b643695786Fix issue 357: Program hangs when loading GIF images with unknown Application Extension Blocks
Yves Rizoud
2010-06-15 16:52:59 +00:00
2441c5cfd7Lua: Fixed the inputboex's radio buttons that didn't act as radio since 2 April. Classic skin is now resaved as actual png.
Yves Rizoud
2010-06-15 14:46:59 +00:00
8c5e4fa730Refresh menu correctly after loading skin: Restore multi-state buttons, which buttons are highlighted, and current paintbrush in top left icon.
Yves Rizoud
2010-06-07 19:31:31 +00:00
575d9e3be5Skins screen now immediately load the screen from disk when you enter it. When editing skin from within Grafx2, this means you can immediately press enter or click OK to update and see change.
Yves Rizoud
2010-06-07 19:17:26 +00:00
038d1bc0f6Fixes missing icon updates: On tool toggle (line,freehand,curve), On split buttons (ellipses, polygons), Palette scroll arrows (vertical or horizontal). Only missing: on skin change
Yves Rizoud
2010-06-07 18:47:08 +00:00
14557f8f02Fixed the display of brush in the top left button
Yves Rizoud
2010-06-06 23:08:49 +00:00
9456b06143Changed skin format to allow skinmakers to provide 'selected' versions of buttons. Still slightly buggy
Yves Rizoud
2010-06-06 19:29:28 +00:00
6c57c073d7Makefile: Put PF fonts in archive
Yves Rizoud
2010-05-24 22:15:20 +00:00
0adddf99dcFix bad offset of brush on startup (recent bug). Files in file selector are now sorted case-insensitive on Windows.
Yves Rizoud
2010-05-24 21:57:39 +00:00
523c8a623fMakefile: Allow $(JOYCOPT) and -O$(OPTIM) on Linux. Patch by Johannes Kroll
Yves Rizoud
2010-05-20 17:56:38 +00:00
39bf004501Added several pixel fonts
Yves Rizoud
2010-05-18 19:22:54 +00:00
d00a5cfcd4Fix bug with >16 paintbrushes
Yves Rizoud
2010-05-18 01:11:58 +00:00
a84a9b7e66Brushes are now saved in gfx2.cfg. Fix a severe bug in gfx2.cfg format: in Settings screen, the button 'Reload' was readign the file incorrectly, which caused (for example) the keyboard shortcut to 'Scroll Up' to disappear.
Yves Rizoud
2010-05-18 00:07:06 +00:00
3c391bc3afPaintbrush menu: A dropdown list to choose a built-in resizable brush.
Yves Rizoud
2010-05-16 17:37:32 +00:00
4f047c181aCustom 16x16 paintbrushes can be stored in the 48 preset slots(Issue 345). Not saved/reloaded so far.
Yves Rizoud
2010-05-16 16:44:26 +00:00
f686d8a951Issue 257: In the Paintbrush selection screen, outline the current brush
Yves Rizoud
2010-05-16 14:52:45 +00:00
a29c025156Speed up the translucency effect when there's a perfect match.
Yves Rizoud
2010-05-16 14:29:13 +00:00
039c8a7194Add support for getting free space in Haiku.
Adrien Destugues
2010-05-05 19:31:48 +00:00
aeec8451dcFix build under HAiku/gcc2.
Adrien Destugues
2010-05-05 18:05:20 +00:00
9644f7fb4a* Include NetBSD patch from Jeff. Thanks ! * Attempt to workaround the lua pkg-config problems. I'd like to know if it makes everyone happy ?
Adrien Destugues
2010-04-28 18:53:10 +00:00
985e348fe4Added missing doc about scrolling layers with "adjust" tool.
Adrien Destugues
2010-04-28 18:04:45 +00:00
eb9145346fImproved the safety backups: after restore, the original filename and directory are set. It uses a GIF application extension to save the data in the files (Only used for safety backups, it won't affect the GIFs that you save)
Yves Rizoud
2010-04-27 23:21:29 +00:00
c7d7938797Settings: Added the missing mouse sensitivity; Fixed mouse droppings; Toggle settings in the other direction with right mouse button. Skins: Fixed small problem when changing skins, note taking color change into account immediately.
Yves Rizoud
2010-04-26 19:22:00 +00:00
f36f4c9ddbSome fixes to make the amiga build work better. I finally installed gcc on my amiga, so there is a hope of getting a working build. Everything compiles but fails when linking, because I've not figured out how to install SDL.
Adrien Destugues
2010-04-24 21:38:39 +00:00
f06dbc1389Settings: Can now input numbers. Helpfile redone from scratch. Can use mouse wheel.
Yves Rizoud
2010-04-24 18:49:44 +00:00
9b0a160ffbLabel 2.3wip for builds
Yves Rizoud
2010-04-22 01:08:40 +00:00
05e84455c3Redid Setting screen, unfinished (Can't input numeric values at the moment). System is rather generic, it will allow easier changes in the future. All .INI settings are now settable from within Grafx2.
Yves Rizoud
2010-04-22 01:06:16 +00:00
8a27ca0892Fix a few typos in Keyboard Shortcuts help. Fixed the unaligned 4 in DPaint font.
Yves Rizoud
2010-04-17 17:03:16 +00:00
5e972c0659Fix crash when loading 24bit+transparency PNG images, such as http://pixeljoint.com/pixelart/51675.htm - This patch discards the transparency data in this case, because interpreting it correctly is a much bigger change: todo sometime later.
Yves Rizoud
2010-04-16 00:36:41 +00:00
8887d4ece5Palette: fix a harmless display problem after color reduce (introduced with histogram, which redesigned the window)
Yves Rizoud
2010-04-14 18:25:55 +00:00
85b95d4ff1Fix build for Haiku
Adrien Destugues
2010-04-12 08:27:38 +00:00
1e0cafdae1Fix issue 340: Inaccurate cursor position when selecting palette colors. Also improved greatly the picking of color: It's now on mouse down (instead of release), you can drag the mouse to another cell. Dragging won't activate any other buttons, only palette cells.
Yves Rizoud
2010-04-11 18:43:32 +00:00
b19a03d499Skin DPaint: Fixed the menu cursor, its active spot was one pixel above the arrow point. Skin Classic: Added a central pixel, for consistency with the other skins since issue 104.
Yves Rizoud
2010-04-11 16:38:22 +00:00
ff2c44eaf9Fix issue 339 (Grad Rectangle can leave construction lines on image)
Yves Rizoud
2010-04-10 19:46:41 +00:00
048f197636Continuation of Issue 210:Bottom pixels not complete visable in some zoom modes. I chose to have a dead zone at bottom of zoomed area only when it's at bottom of image too. The dead zone is created only if the remaining space is <= 50 of a normal zoomed line, So the usable pixels are guaranteed to be > half a normal line, and the dead space is always <= half a line.
Yves Rizoud
2010-04-05 17:56:36 +00:00
a865415df6Always display the colorpicker cursor as there is no preview brush.
Adrien Destugues
2010-04-05 09:50:25 +00:00
eb14b70724Introduce a PAINTBRUSH_SHAPE_NONE for the colorpicker.
Adrien Destugues
2010-04-05 09:44:57 +00:00
befba16697Allow to display the last line of pixels in magnifier.
Adrien Destugues
2010-04-05 09:28:52 +00:00
39629a8cbaPalette: some refactoring. Fix an old bug with Swap, it was not updating the internal color count, so a 'Zap unused' would be based on wrong data. Added missing update of (visual) pixel count, after Copy and Swap, and Next/Prev color (hotkeys). The Palette screen now uses the user's current hotkeys for Prev/Next FGColor, Prev/Next BGcolor, and Colorpicker (instead of the defaults [ ] shift+[ shift+] ~ ).
Yves Rizoud
2010-04-05 00:17:19 +00:00
6bf9fc7020Palette histogram: Autodetect the useful range. Now draws a 1-pixel column when the color is present (can more easily see unused colors). Black outline (not really sure if it looks better). Fixed the marker on the column of the window color, sometimes it was on wrong column because of missing parenthesis
Yves Rizoud
2010-04-04 22:50:15 +00:00
97d8d3600cPalette: Fix an erasing of the histogram button that happened when playing with ranges (drag a range from multiple to single color). Fix the pixel count that was printed one character to the left without erasing previous number, thus appearing 10x too much
Yves Rizoud
2010-04-04 21:14:26 +00:00
f6ecbb24eaAdded an histogram window to see the color usage
Adrien Destugues
2010-04-04 10:35:37 +00:00
e1f8e2837aRelayouting the palette screen to make a little more space and sense. Removed the button to recount the color, consider the option to disable autocounting now deprecated.
Adrien Destugues
2010-04-04 09:33:42 +00:00
ab0d336751Fix crash in inputbox when called with wrong arguments (negative precision for number input). Tweaked colors of icons
Yves Rizoud
2010-04-02 15:24:33 +00:00
a8d7f0d01eFix issue 336: building on linux trunk fails (Makefile error)
Yves Rizoud
2010-04-02 08:02:13 +00:00
a28eb09337Fix typos reported in #335.
Adrien Destugues
2010-03-31 17:02:23 +00:00
0780576790Fix issue 334: Lua: setpicturesize causes overdraw on menu
Yves Rizoud
2010-03-28 04:54:25 +00:00
bd87a620c3Fix issue 333: Text window which never closes when opened by 'T'
Yves Rizoud
2010-03-27 23:50:07 +00:00
bf53a167ecLua Fix radio buttons that can't be re-checked if they are at top of inputbox
Yves Rizoud
2010-03-25 23:04:14 +00:00
a31a6bebd1Update scenish screen with a nicer preview.
Adrien Destugues
2010-03-23 22:30:18 +00:00
777d2c318aDividing by 256 works much better when working on integers. This avoids weird stuff happening to the sliders indicators in the palette screen...
Adrien Destugues
2010-03-22 18:30:44 +00:00
65de99f8bcadd the svg icon to the source arc. too
Adrien Destugues
2010-03-22 11:32:04 +00:00
2d66796b61More fixes to make DPaint skin and font the defaults. (should have used a global #define)
Yves Rizoud
2010-03-22 01:49:51 +00:00
4aa61a4407Fix makefile (install/uninstall) to install/uninstall scripts, and added Ilkke's Scenish skin and Seen font to archives. Updated Help credits. Made DPaint the default font for new install (it goes together with DPaint skin)
Yves Rizoud
2010-03-22 01:40:20 +00:00