Commit Graph

  • 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
  • 378555d943 Palette: 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
  • 8df74d8e6b Palette 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
  • 17981ab03b * Fix build when lua disabled. Adrien Destugues 2010-07-27 10:01:08 +00:00
  • 061eba29de Lua scripts can have individual keyboard shortcuts (Issue 344) Yves Rizoud 2010-07-24 16:51:56 +00:00
  • a2eade7203 Fix menu colors after a Lua script modifies the palette (Bug introduced in r1527) Yves Rizoud 2010-07-22 17:30:41 +00:00
  • d5ecba7b6c Palette sort (on brightness) now uses a better formula, provided by DawnBringer. Text tool no longer crashes with some fonts. Added support for bitmap fonts from 'Bitmap Font Writer', such as those from http://www.zone38.net/font/bmpfont.html or http://www.matriaxweb.com/others.htm or http://www.genvid.com/moonstruck/downloads/fonts.html Yves Rizoud 2010-07-14 19:33:53 +00:00
  • e6ced5f6a0 New direct shortcuts for resizing brush (Issue 319) Yves Rizoud 2010-07-08 23:42:48 +00:00
  • 272cc59395 Added 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
  • d459f3f824 Palette: Tags on used colors (click 'Used' button) Yves Rizoud 2010-06-29 23:29:17 +00:00
  • 60d253d21f Palette: Fix badly positioned color count after Reduce Yves Rizoud 2010-06-29 17:59:59 +00:00
  • 4f71dc4bba Update to the Aurora skin by DawnBringer Yves Rizoud 2010-06-26 10:52:14 +00:00
  • ce6aa4cad6 Palette: Can now input color by typing RGB value in hex (Issue 299) Yves Rizoud 2010-06-24 23:56:06 +00:00
  • 7a46da32d5 Support for hexa text input (internal) Yves Rizoud 2010-06-24 19:31:26 +00:00
  • d5a772f5ae Changed 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
  • 1a76338e3b Fix 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
  • d4d1975322 Palette: contextual menu on RMB for Copy/Paste Yves Rizoud 2010-06-19 19:50:05 +00:00
  • 8160a8ab90 Implemented 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
  • 93c711205c Fix a missing refresh on buttons display when the main tool bar is hidden. Yves Rizoud 2010-06-19 13:47:02 +00:00
  • ca1dc98d19 Fix 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
  • 80e2678306 Removed debug data from SDL_image.dll and libpng14-14.dll (GNU strip) Yves Rizoud 2010-06-17 21:42:30 +00:00
  • 9b3ce1cc8a Fix makefile for new version of libpng Yves Rizoud 2010-06-17 21:38:24 +00:00
  • 06f165cec8 Re-built SDL_image 1.2.10 with the right dependency on libpng14-14.dll Yves Rizoud 2010-06-17 20:53:41 +00:00
  • 95665a99df New: 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
  • ab657b018e Fix issue 356: Crash when using font size > 99 Yves Rizoud 2010-06-15 19:34:08 +00:00
  • ddc0c3448d Support for loading 1bpp GIF. At last! Yves Rizoud 2010-06-15 19:02:43 +00:00
  • b643695786 Fix issue 357: Program hangs when loading GIF images with unknown Application Extension Blocks Yves Rizoud 2010-06-15 16:52:59 +00:00
  • 2441c5cfd7 Lua: 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
  • ca18967d11 Sorry ! Adrien Destugues 2010-06-15 09:02:17 +00:00
  • 85e4ea9a79 Fix compatibility warnings of libpng v1.4. Hopefully maintained compatibility with older versions... please report if problems. Yves Rizoud 2010-06-14 23:01:57 +00:00
  • 0ab3678768 Update SDL_image to 1.2.10 (linked against the new libpng). Adrien Destugues 2010-06-14 17:37:04 +00:00
  • 83753d9d79 * Use libpng1.4 on windows (the "1.3" version doesn't even exist, where did we got this file ?) Adrien Destugues 2010-06-14 17:31:54 +00:00
  • 899a7c0cc1 We have a new bugfinder. Adrien Destugues 2010-06-14 17:07:07 +00:00
  • a8cf59b531 Fix issue 355. Adrien Destugues 2010-06-14 17:03:41 +00:00
  • 8c5e4fa730 Refresh 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
  • 575d9e3be5 Skins 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
  • 038d1bc0f6 Fixes 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
  • 14557f8f02 Fixed the display of brush in the top left button Yves Rizoud 2010-06-06 23:08:49 +00:00
  • 9456b06143 Changed skin format to allow skinmakers to provide 'selected' versions of buttons. Still slightly buggy Yves Rizoud 2010-06-06 19:29:28 +00:00
  • e5edfda5cc Skins with flat buttons (Issue 352). Sample skins: Clax2, Clax3 Yves Rizoud 2010-05-30 17:59:32 +00:00
  • eec8610817 Fix issue 351: Ugly status bar icon on Windows Yves Rizoud 2010-05-30 15:35:33 +00:00
  • 3446c1084b Fixed: Using F1 in Settings screen didn't open the right Help page for each group of settings. Yves Rizoud 2010-05-29 15:33:51 +00:00
  • acd31e1a3a Implemented 'Right click colorpick' option (Issue 300) Yves Rizoud 2010-05-29 15:18:12 +00:00
  • e102282dca New skin, Aurora, made by DawnBringer Yves Rizoud 2010-05-27 21:06:28 +00:00
  • c353cf67a6 Fixed makefile and added missing doc Yves Rizoud 2010-05-24 22:25:08 +00:00
  • 6c57c073d7 Makefile: Put PF fonts in archive Yves Rizoud 2010-05-24 22:15:20 +00:00
  • 0adddf99dc Fix 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
  • 2ad2574504 Updated credits. Yves Rizoud 2010-05-22 22:50:15 +00:00
  • 523c8a623f Makefile: Allow $(JOYCOPT) and -O$(OPTIM) on Linux. Patch by Johannes Kroll Yves Rizoud 2010-05-20 17:56:38 +00:00
  • 39bf004501 Added several pixel fonts Yves Rizoud 2010-05-18 19:22:54 +00:00
  • d00a5cfcd4 Fix bug with >16 paintbrushes Yves Rizoud 2010-05-18 01:11:58 +00:00
  • a84a9b7e66 Brushes 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
  • 3c391bc3af Paintbrush menu: A dropdown list to choose a built-in resizable brush. Yves Rizoud 2010-05-16 17:37:32 +00:00
  • 4f047c181a Custom 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
  • f686d8a951 Issue 257: In the Paintbrush selection screen, outline the current brush Yves Rizoud 2010-05-16 14:52:45 +00:00
  • a29c025156 Speed up the translucency effect when there's a perfect match. Yves Rizoud 2010-05-16 14:29:13 +00:00
  • 039c8a7194 Add support for getting free space in Haiku. Adrien Destugues 2010-05-05 19:31:48 +00:00
  • aeec8451dc Fix 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
  • 985e348fe4 Added missing doc about scrolling layers with "adjust" tool. Adrien Destugues 2010-04-28 18:04:45 +00:00
  • eb9145346f Improved 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
  • e4de7a0210 Settings: cleaner code Yves Rizoud 2010-04-26 22:24:39 +00:00
  • c7d7938797 Settings: 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
  • f36f4c9ddb Some 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
  • f06dbc1389 Settings: Can now input numbers. Helpfile redone from scratch. Can use mouse wheel. Yves Rizoud 2010-04-24 18:49:44 +00:00
  • 9b0a160ffb Label 2.3wip for builds Yves Rizoud 2010-04-22 01:08:40 +00:00
  • 05e84455c3 Redid 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
  • 8a27ca0892 Fix a few typos in Keyboard Shortcuts help. Fixed the unaligned 4 in DPaint font. Yves Rizoud 2010-04-17 17:03:16 +00:00
  • 5e972c0659 Fix 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
  • 8887d4ece5 Palette: 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
  • 85b95d4ff1 Fix build for Haiku Adrien Destugues 2010-04-12 08:27:38 +00:00
  • 1e0cafdae1 Fix 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
  • b19a03d499 Skin 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
  • ff2c44eaf9 Fix issue 339 (Grad Rectangle can leave construction lines on image) Yves Rizoud 2010-04-10 19:46:41 +00:00
  • 048f197636 Continuation 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
  • a865415df6 Always display the colorpicker cursor as there is no preview brush. Adrien Destugues 2010-04-05 09:50:25 +00:00
  • eb14b70724 Introduce a PAINTBRUSH_SHAPE_NONE for the colorpicker. Adrien Destugues 2010-04-05 09:44:57 +00:00
  • befba16697 Allow to display the last line of pixels in magnifier. Adrien Destugues 2010-04-05 09:28:52 +00:00
  • 39629a8cba Palette: 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
  • 6bf9fc7020 Palette 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
  • 97d8d3600c Palette: 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
  • f47d377534 fix stupid bug in histogram window. Adrien Destugues 2010-04-04 11:35:55 +00:00
  • f6ecbb24ea Added an histogram window to see the color usage Adrien Destugues 2010-04-04 10:35:37 +00:00
  • e1f8e2837a Relayouting 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
  • ab0d336751 Fix 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
  • a8d7f0d01e Fix issue 336: building on linux trunk fails (Makefile error) Yves Rizoud 2010-04-02 08:02:13 +00:00
  • a28eb09337 Fix typos reported in #335. Adrien Destugues 2010-03-31 17:02:23 +00:00
  • 0780576790 Fix issue 334: Lua: setpicturesize causes overdraw on menu Yves Rizoud 2010-03-28 04:54:25 +00:00
  • bd87a620c3 Fix issue 333: Text window which never closes when opened by 'T' Yves Rizoud 2010-03-27 23:50:07 +00:00
  • bf53a167ec Lua 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
  • a31a6bebd1 Update scenish screen with a nicer preview. Adrien Destugues 2010-03-23 22:30:18 +00:00
  • 777d2c318a Dividing 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
  • 65de99f8bc add the svg icon to the source arc. too Adrien Destugues 2010-03-22 11:32:04 +00:00
  • 1dd6776114 The "ziprelease" target missed the svg icon. Adrien Destugues 2010-03-22 11:29:57 +00:00
  • 2d66796b61 More 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
  • 4aa61a4407 Fix 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