Commit Graph

  • df5db73f5a Updated credits; Fix issue 309: Libpng 1.4 breaks build process Yves Rizoud 2010-03-22 00:58:00 +00:00
  • 481ea4579f * Update copyright year on splash screen * Set DPaint skin as default Adrien Destugues 2010-03-21 22:13:58 +00:00
  • 5ebd635482 The makefile was a little bit outdated for the gp2x : it did not allow to use the joystick and didn't take care of lua. Adrien Destugues 2010-03-21 21:52:28 +00:00
  • 5f06caaf58 GPL license on Nitrofurano's Lua scripts. thanks! Yves Rizoud 2010-03-21 21:46:03 +00:00
  • 8962e18362 Lua Inputbox: support for radio buttons Yves Rizoud 2010-03-21 21:40:27 +00:00
  • 0017fbce72 Lua scripts: Added the 'table' library. Added GPL headers to DawnBringer's scripts (thanks!). 2 cosmetic fixes in scripts. Yves Rizoud 2010-03-21 15:43:11 +00:00
  • e78b1d03be Updated credits in help. Updated Scenish skin (Now with Arne's palette as default) Yves Rizoud 2010-03-18 23:57:28 +00:00
  • 1e272832ea Add skin Scenish and font Seen, by iLKke. Update the logo in skin Modern. Fix selection of FG and BG colors (white and black) on program startup, to work with new skin where the lightest color is not white Yves Rizoud 2010-03-17 23:17:24 +00:00
  • 2fb79034ac Build fix for gp2x Adrien Destugues 2010-03-17 20:39:59 +00:00
  • 5575ad16bf Ready for 2.2 release ! (unless I missed something again...) Adrien Destugues 2010-03-17 20:23:37 +00:00
  • d194c239f8 Fix help page for Filled circle: It was showing shortcuts of Outlined circle. Since 2008. Doh! Yves Rizoud 2010-03-17 20:13:22 +00:00
  • 032e48c64b Handle svg icon properly on linux. Adrien Destugues 2010-03-17 18:15:14 +00:00
  • b21d1360a2 * Refresh makefile.dep * Some fixes in makefile to get gp2x binary built ok, add new skins and fonts to the release package. Adrien Destugues 2010-03-17 18:05:16 +00:00
  • dd3240f66b Fix C64 formats loading: 8000-byte hicolor was wrong, Multicolor was reading 'noise' in colors above 16 (described in issue 211 comment 34) Yves Rizoud 2010-03-14 18:17:56 +00:00
  • 5708b92481 Updated docs README and COMPILING Yves Rizoud 2010-03-13 16:28:59 +00:00
  • 54317d94ae Fix issue 326: Program doesn't find data directory on some linux (attempt. Tested ok on Debian) Yves Rizoud 2010-03-11 20:40:25 +00:00
  • 50791f752b Updated svn properties for new tree Yves Rizoud 2010-03-08 23:43:02 +00:00
  • e0b0b41a76 Fix a bug from r1369: In Palette Invert, when the rangehad an even number of colors, the colors in the middle would not be swapped Yves Rizoud 2010-03-08 23:38:50 +00:00
  • b1a5103562 C64 format handling was broken. Thanks petter for fixing it :) Adrien Destugues 2010-03-08 10:25:18 +00:00
  • 3ca5322379 Reorganized source code and directory tree. Yves Rizoud 2010-03-05 02:53:19 +00:00
  • 2012e8f6b5 Makefile: added $(COPT) like in Gürkan's diff Yves Rizoud 2010-03-03 01:26:59 +00:00
  • 1bfbb1a3b9 Old typo in SDL's readme. Oops. Yves Rizoud 2010-03-03 00:08:58 +00:00
  • 2f9a4db7f1 .desktop file must not include the extension for the icon name. This way programs can select the filetype they want. Adrien Destugues 2010-03-02 13:59:15 +00:00
  • 8486c61556 Fix issue 316: Crash in Brush factory when no scripts are present Yves Rizoud 2010-03-02 00:59:01 +00:00
  • a7f51a0e60 Sped up Palette operations Yves Rizoud 2010-03-02 00:05:40 +00:00
  • 22f05f5052 Fix an issue (probably old) where Color reduce would not pick the right colors if an X-Invert had been used. Yves Rizoud 2010-03-01 23:42:22 +00:00
  • e423b5fb92 Fix issue 323: X-Invert didn't remap (it worked fine in 2.1). In Palette screen, fix Color reduce that only checked for used colors in visible image (instead of all layers) Yves Rizoud 2010-03-01 22:49:55 +00:00
  • 46f235f743 Allow to use dofile in lua scripts : we now chdir to the script folder before running the script, so it will easily find other scripts. If you want to run scripts located elsewhere, use relative or absolute path. Adrien Destugues 2010-03-01 12:42:25 +00:00
  • 827ad2da1c Fix issue 320: Image corruption when running a Lua script after loading 24bit image Yves Rizoud 2010-02-24 02:31:31 +00:00
  • c26b09a3d3 Default config for fresh install now has normal pixels instead of wide (duh), and 10 Undo pages instead of 4. Added a safety check for the value of Pixel_ratio setting in .ini Yves Rizoud 2010-02-22 00:17:57 +00:00
  • 5e38c68a6f Makefile fix: package the Lua scripts by default Yves Rizoud 2010-02-21 18:41:16 +00:00
  • 5d213a11fa Lua: New clearpicture command Yves Rizoud 2010-02-21 18:15:15 +00:00
  • 8c2655f88a Lua: finished inputbox with negative and decimal inputs. Added to the repository more than 20(!) new scripts by DawnBringer Yves Rizoud 2010-02-21 17:58:20 +00:00
  • b393482c58 Lua: fix crash when a string argument is missing or an array instead. Implemented universal error messages and checks for function arguments Yves Rizoud 2010-02-20 01:33:22 +00:00
  • 14464fef39 Lua inputbox: Allow negative values and floating point input. Unfinished, has problems of display (mouse cursor cleaning, display cleaning and alignment, removing redundant digits like in 15.000) Yves Rizoud 2010-02-19 02:09:50 +00:00
  • f05906f99b Open lua base lib to allow use of require() and dofile(). Adrien Destugues 2010-02-17 18:34:14 +00:00
  • 7fe8d44805 Fix all remaining warnings in gp2x build. The compiler is a bit more picky about the includes and feature macros. Adrien Destugues 2010-02-16 13:31:29 +00:00
  • 13865a0ade Fix build on gp2x. Adrien Destugues 2010-02-16 12:56:24 +00:00
  • 4219ca839d The 'Clear' function now clears with Transparent color instead of hard-coded 0. Outside edges of images are also drawn with this color. Reduced max layers to 16, for consistency with UI. Added help screens for Layer menu and Brush factory. Yves Rizoud 2010-02-14 04:50:23 +00:00
  • d5353b378d Lua window: shortcut 'return' runs highlighted script, and the script selector remembers which filename was highlighted (during current session) Yves Rizoud 2010-02-14 03:10:55 +00:00
  • aa316b066e Reverted r1300 about Polygon overdraw and effects feedback (issue 131). The non-straight polygon lines was bigger problem than the specific case I raised. Yves Rizoud 2010-02-14 02:13:23 +00:00
  • 25e8943e4c Fix an hourglass cursor when loading a file from command-line (recent bug). Fix issue 307: Drop-opened files do not retain name in Save-as dialog. Yves Rizoud 2010-02-14 01:39:56 +00:00
  • 76887dd84d cleaner deletion of lock file Yves Rizoud 2010-02-14 01:13:14 +00:00
  • 35121c58a8 Fixes on Debian Linux for the 'file locking'. Tested ok Yves Rizoud 2010-02-14 01:07:05 +00:00
  • 4c3a0b6f68 Grafx2 now disables safety backups (and warns the user on startup) if another instance is running or if its configuration directory is read-only. Implemented separately on Linux and Windows, tested only on Windows Yves Rizoud 2010-02-14 00:28:42 +00:00
  • 7076e8e06d Eliminated a lot of tab characters in source code Yves Rizoud 2010-02-13 19:25:49 +00:00
  • 480c9abaab Eliminated some tab characters in source code Yves Rizoud 2010-02-13 19:05:16 +00:00
  • 917847cdab Lua: added a message box. messagebox('message'), or messagebox('caption','message'). note that Lua supports concatenation (operator ..) and this function accepts backslash-n for carriage return. It performs word-wrapping if needed. Fixed the Hourglass cursor showing up in some error boxes, instead of the arrow cursor. Yves Rizoud 2010-02-13 19:00:13 +00:00
  • 683f8c6a18 Undo of test for Lua messages Yves Rizoud 2010-02-13 18:31:58 +00:00
  • f64117aeda Fix display in message boxes when very long messages happened (normally only with Lua messages) Yves Rizoud 2010-02-13 18:23:13 +00:00
  • 87432470f3 Fix a crash in 'Copy to spare:Palette' when both images have different height. Fix Lua which didin't report useful message when an error was detected. Yves Rizoud 2010-02-13 14:54:19 +00:00
  • 05d6d546a3 More Lua functions: GetForeColor, GetBackColor, GetTransColor (layer translucency), and to read data from spare page: GetSparePictureSize, GetSpareColor (spare's palette), GetSpareTransColor, GetSpareLayerPixel (pixel from 'current layer' only of spare), GetSparePicturePixel (pixel from 'all visible layers' of spare) Yves Rizoud 2010-02-12 02:57:00 +00:00
  • 25097afafd Lua: added a command that creates an input box with variable arguments (inputbox), up to 9 values can be input. Fix a cursor issue when opening brush factory. Yves Rizoud 2010-02-12 01:52:18 +00:00
  • 65f19eeec9 Text tool with bitmap fonts now uses the background color instead of color 0. It was not possible to draw text with a black font if black was color 0. Yves Rizoud 2010-02-09 21:53:43 +00:00
  • 4f73c24989 Added Layer menu. Issue 263 and issue 110: Added background transparency, for GIF and PNG formats (tested OK in Load, Save, and preview Yves Rizoud 2010-02-09 20:04:56 +00:00
  • 7bccc7dda2 Make future toolbars visible by default Yves Rizoud 2010-02-08 23:16:12 +00:00
  • 1f672681bc Stencil mode now 'reads' from only the current layer, instead of all visible layers. Yves Rizoud 2010-02-08 19:22:26 +00:00
  • 6f08d59f01 Layer toolbar visible by default. Grafx2 now records which toolbars are visible on exit, and restores them next time. Yves Rizoud 2010-02-08 18:58:42 +00:00
  • b0a700850f Lua factory: More room for file names (34 chars instead of 18), and a preview of the script's first lines of comments. Yves Rizoud 2010-02-07 20:13:54 +00:00
  • df2a0ec4dd Source-only: displaced and documented a function prototype Yves Rizoud 2010-02-07 17:13:41 +00:00
  • b928aa306a oops. Adrien Destugues 2010-02-07 11:45:05 +00:00
  • 056ce73ee9 Some user-contributed patches to cleanup the build and remove warnings. Adrien Destugues 2010-02-07 11:44:38 +00:00
  • 571cf70b58 Hide button: inverted right and left clicks. Fixed credits. Lua: arguments of MatchColor and SetColor are now automatically clamped on 0 and 255 when they are too small or too big, instead of wrapping. Yves Rizoud 2010-02-05 01:27:00 +00:00
  • 06a5bafd32 Added some long forgotten bugfinders... sorry guys ! Adrien Destugues 2010-02-04 09:49:13 +00:00
  • bc96d0f0f0 Added Dawnbringer to credits (bugfinders section) Yves Rizoud 2010-02-04 01:21:11 +00:00
  • 5678f0712d Fix issue 310:Lua's 'getbackuppixel' that returns wrong data, and Picture Scroll that shows garbage; both after Load/Reload/Resize. Yves Rizoud 2010-02-04 01:07:42 +00:00
  • de2096c711 -Update nitrofuranoo's script to render palette so it sets the picture size -Complete the palette repository with nitrofurano's palettes -Move the palette files so they have cleaner names Adrien Destugues 2010-02-03 20:01:24 +00:00
  • 84ccd7f845 Fixed polygon and polyform overdrawing the first point in an approximate way. Adrien Destugues 2010-02-03 18:27:04 +00:00
  • 4c40a0a99a Fix backup not being deleted on exit. Adrien Destugues 2010-02-03 18:07:15 +00:00
  • e96be96ce1 Magnifier: Both views positions are preserved on switching to Spare and back. Changing zoom with dropdown menu doesn't accidentally zoom on mouse Yves Rizoud 2010-02-02 19:40:51 +00:00
  • 051f5e60cf Missed this one in my mailbox. Adrien Destugues 2010-02-02 16:19:40 +00:00
  • 46ed0b5718 Script contest entries. Adrien Destugues 2010-02-02 16:14:46 +00:00
  • 47f8f8ffc4 Improved zoom-on-mouse: when changing zoom factor, the pixel under mouse cursor, either in normal or magnified view, stays 'stuck' under it, and both views re-center accordingly. Only limits are the scrolling constraints of Grafx2: The zoomed view must always be part of the non-zoomed view, it's not allowed to see above and left of picture limits, and it auto-scrolls left or top when you go near the right or bottom limit (show more pixels) Yves Rizoud 2010-02-02 01:06:14 +00:00
  • 0125c15209 Eliminated some alien tab characters in source file windows.c Yves Rizoud 2010-02-01 23:17:51 +00:00
  • 59f2c45c43 Fixed stupid bug making the zoom drift to bottom right corner of the picture. Adrien Destugues 2010-02-01 19:31:32 +00:00
  • 56785bd94e Lua: Added GetBackupColor, to read RGB values from the original palette (Useful if your script modifies the palette then reads pixels from backup) Yves Rizoud 2010-01-31 16:09:40 +00:00
  • fa15037a42 Lua: GetBrushBackupPixel now works (Had forgotten to make initial copy :-/ ) Yves Rizoud 2010-01-29 02:20:45 +00:00
  • bfbefeff82 Lua changes: Safety in all functions. Invalid arguments raise an error message and halt script (ex: Resize screen or brush with size < 1) or is silently ignored (drawing outside limits does nothing, reading outside limit reports transparent color). Fixed: SetColor. New: GetBrushTransparentColor, GetBrushBackupPixel. Removed: BrushEnabled (autodetected when needed) Yves Rizoud 2010-01-29 01:47:09 +00:00
  • 62cc506737 Fix Fill, Polyform/Polyline, and Contour fill when using effects (Transparency) with layers: it was reading from all visible layers instead of only current, so the result kind of 'fused' the pixels. Related to issue 245. Yves Rizoud 2010-01-28 02:48:56 +00:00
  • 259a3d3338 Lua scripts: Add missing screen update. GetPicturePixel now reads from 'all visible layers'. New GetLayerPixel. Hourglass cursor while script is running. Yves Rizoud 2010-01-27 20:44:32 +00:00
  • 27014064ab * Actually write something to the picture (not only the screen) when using lua scripts * Call end_of_modification when drawing is finished There's something weird hapenning still : when I call the script the fist time nothing is shown on screen, then I draw something, then I call the script again. The second call should overwrite everything, but doesnt. I can draw over it, and if I hide then show back the picture, the old lines that should have been erased are now gone... Adrien Destugues 2010-01-27 18:02:53 +00:00
  • dddc128794 * Add a set of palettes contributed by Nitrofurano. Thanks ! * Add a small python script to convert palettes back to the old .PAL format if you ever need it. * Update wiki page about palette to link to the new palettes ( I din't know where to put that) * also moved "translation" tools to the "tools" folder along with the convert script Adrien Destugues 2010-01-27 17:23:12 +00:00
  • c04dbcb19a Layer-specific: Fixed possible double free on exit. Removed unused global pointer. Implemented proper backup (history) before the various Copy-to-spare actions, fixing a severe history bug when using layers (issue 270). Grafx2 no longer asks 'Spare page was modified, continue?' on Spare modifications. Fixed missing screen refresh in Copy-to-spare (issue 293). Fixed the save-on-crash to actually save the spare Yves Rizoud 2010-01-26 02:23:44 +00:00
  • 4ddcd01730 Palette operations that displace colors (sort, x-swap, x-inv, maybe others) now move around the transparent color index accordingly. The idea is that these changes don't modify 'What you see' of the image, and if the transp color was unchanged, it would be a huge visual change. Yves Rizoud 2010-01-25 19:15:25 +00:00
  • b07ab82b20 Fix missing preview of palette formats. Fixed JASC PAL saving that didn't close file (!), so saving more than once would make empty file. Fixed loading palette formats that didn't have any effect. Yves Rizoud 2010-01-23 20:51:32 +00:00
  • bece65fcbb Safety backup: On recovery, load all images even if it exceeds the normal setting of Backup Pages. On crash, do not attempt to save current visible image if the edited image has multiple layers. Yves Rizoud 2010-01-23 18:33:48 +00:00
  • 9933e1fddc We can now build on tru64. Mountlist.c doesn't seem to work so it crashes when trying to do something in the loadsave screen. As the available machines don't have gdb, I can't go much further... I could try building with compaq compiler but it seems a lot more strict than gcc. Do you want me to fix these problems to get cleaner ansi code (may be less readable...) Adrien Destugues 2010-01-20 11:18:26 +00:00
  • b36dee613e Ensure pointers are put back to NULL when freed. --Cette ligne, et les suivantes ci-dessous, seront ignorées-- Adrien Destugues 2010-01-18 14:26:59 +00:00
  • 04d7359ef5 -"Fixed" issue 222 : if your WM force grafx2 to get a smaller window more than 10 times, it will switch to PIXEL_SIMPLE. It will still flicker, but only if you try to go below 320x200. -Btw, there seem to be a bug in Verbose_error_message : I needed to pad my message with spaces at the end, or it would display garbage. I think it doesn't detect the \0 properly and expects the last word to end with space... Adrien Destugues 2010-01-18 10:43:00 +00:00
  • 357f8b37ef Fixed the 'Save as' not updating the current file's name (bug 289) and ignoring the selected format (!). When going to parent directory, the origin is now highlighted. When 'Saving as', the original file is highlighted. In DPaint skin, fixed the layer order arrows which were reversed, and made the default BG color 0, as it's more consistent with empty images which are filled with 0. Yves Rizoud 2010-01-18 02:13:20 +00:00
  • 8d2e0642e6 MIME type for rtf... lets see if googlecode handles it better Yves Rizoud 2010-01-17 23:14:08 +00:00
  • 06c2c4aa83 Add first draft of a Quickstart guide (uncomplete) Yves Rizoud 2010-01-17 23:08:59 +00:00
  • fe0f87521b -Add some more zoom factors (up to x32) -Replace the zoom window with a popup menu. Note this make shift+M unusable. Do you think it's annoying ? (also, I don't know how to remove/disable the shortcut, and have no idea what it could do instead) Adrien Destugues 2010-01-17 22:10:19 +00:00
  • 98a9eb44c4 Fix X-Swap not remapping the layers properly. Adrien Destugues 2010-01-17 20:36:17 +00:00
  • 64c3bc7771 The skin preview could corrupt the screen palette. Now always restore it properly. Adrien Destugues 2010-01-17 20:01:37 +00:00
  • 28b2122997 Fix wrong menu colors when recovering a backup. Adrien Destugues 2010-01-17 19:54:02 +00:00
  • 027db7736a -Fix best_color_nonexcluded again. -Fix zoom position drifting when switching to spare Adrien Destugues 2010-01-17 19:16:55 +00:00
  • 97ca0c65e3 Fix stupid bug. No one noticed yet :p Adrien Destugues 2010-01-17 09:36:47 +00:00
  • 6a69fa2b79 Hide button now brings a drop-down menu to choose toolbars to show/hide. Right-clicking it toggles them all off/on. Internal: Added support for dropdowns that expand above the button (available in toolbars and windows); Allowed toolbar buttons to wait for button release (the usual) or immediately trigger their effect. Yves Rizoud 2010-01-17 01:56:56 +00:00
  • 450b64ca10 Fixed a bug in gradrect xor lines drawing where they could sometime get to draw over the menu or even outside the screen. Adrien Destugues 2010-01-16 21:58:45 +00:00