1. 21 Aug, 2021 1 commit
    • ROOL's avatar
      Brush pane tweaks · 3d778ae8
      ROOL authored
        Hide the scrollbar under the brushes if the pane is narrow enough to show all.
        Remove excess space after interactive help token.
  2. 07 Jul, 2021 1 commit
    • ROOL's avatar
      Brush tool enhancements · 562bab11
      ROOL authored
        A visual brush 'palette' now makes it easy to see the internal shapes or chosen sprite.
        More clear brush tool window layout.
        Adds an opacity slider.
        Tint of a sprite using the currently selected colour using a ColourTrans transfer
        Use alpha channel sprite as the brush sprite.
        Fix to colours_entry() in Colours.c for 16M colour sprites.
        Notes -
        The non-100% opacity features are disabled if supporting modules are missing/too old.
        Translucent painting is performed into an off screen buffer, then the result merged onto
        the sprite once the mouse is idle.
        Submission for Paint bounty.
      Version 2.42. Tagged as 'Paint-2_42'
  3. 21 Apr, 2021 1 commit
    • ROOL's avatar
      Add PNG and JPEG output options · 65deef03
      ROOL authored
        Alongside the familiar Sprite save box, there are now options to convert to PNG or JPEG too.
        Both exporters offer (simplified) sub options to determine the compression level.
        Export is disabled in the event that the supporting modules CompressJPEG or CompressPNG are missing.
        Updated interactive help messages and menus, templates for the new save as dialogues.
        Submission for PNG bounty.
      Version 2.39. Tagged as 'Paint-2_39'
  4. 04 Jul, 2020 1 commit
    • Jeffrey Lee's avatar
      Sprite compatibility report fix · ab784d97
      Jeffrey Lee authored
      As documented in PRM5A, RISC OS 3.5 doesn't support new-format sprites
      which have masks. Update the sprite info dialogue "compatibility" field
      to reflect this, reporting that the sprite is compatible with RISC OS
      3.6 instead.
  5. 23 May, 2020 1 commit
    • Robert Sprowson's avatar
      Add choices dialogue, don't set Paint$Options · 5ddfba1a
      Robert Sprowson authored
      Messages/Templates: Extra interactive help, new menu templates, new choices dialogue.
      PaintChoice.c/h: New source file to handle the choices dialogue, also added to Makefile.
      Main.c/h: Transfer ownership of initial_options to PaintChoice.c. Delete setting & parsing of Paint$Options. Export - and constify - Matches() for use elsewhere. Define MAXZOOMFACTOR and replace 999's elsewhere.
      Menus.c: Remove advanced options menu, these are now in choices.
      MenuD.h: Defines for the iconbar menu, remove advanced options menu.
      Version 2.35. Tagged as 'Paint-2_35'
  6. 09 May, 2020 1 commit
    • ROOL's avatar
      Minor fixes · 420bdd39
      ROOL authored
        * Fix for 2 colours being editing when the palette is in artist friendly view
        * Disabled 'Rearrange user palette' option by default to keep confusion to a minimum
        * Remove ^P shortcut for 'Edit palette' which could cause a submenu error in some situations
        Submission for Paint bounty.
      Version 2.34. Tagged as 'Paint-2_34'
  7. 28 Dec, 2019 1 commit
    • ROOL's avatar
      Messages update · bdc9c4ae
      ROOL authored
        Move the menu entry tokens out of the !Help messages section so they don't get tokenised.
        Submission for the Paint bounty.
      Version 2.30. Not tagged
  8. 17 Dec, 2019 1 commit
    • ROOL's avatar
      Treat 'New sprite' as dialogue window · c8a3984c
      ROOL authored
        Now that there a popup menus on the create sprite window, it can't be used as a menu dialogue (because the Wimp only allows one window) from a submenu arrow. Change the menu entry to add an ellipsis and open it as a plain dialogue window.
        Submission for the Paint bounty.
  9. 26 Sep, 2019 1 commit
    • ROOL's avatar
      Colour handling fixes · b886fe56
      ROOL authored
        * Menus rearranged so "Advanced" is renamed "Palette options"; "Extra click for input focus" moved to the Paint menu.
        * The "Highlight background colour" menu option has been removed to simplify the interface.
        * To address all the differences of opinion around the artist-friendly palette arrangement, the default behaviour is to not show the confirmation dialogue box plus a further menu option "Rearrange user palettes" (ticked by default).
          If the latter's unticked, the remapping to artist-friendly (upon Edit palette) will never take place; if it's ticked, the remapping will always take place except when the confirmation box is enabled and the user clicks Default.
        * Greyed out palette options when there's not a full/default 256-colour palette, as appropriate.
        * Help text updated to reflect these changes.
        Submission for the Paint bounty.
      Version 2.28. Tagged as 'Paint-2_28'
  10. 22 Sep, 2019 1 commit
    • ROOL's avatar
      Zoom resize, focus, and keyboard shortcuts · 6a84fc4e
      ROOL authored
        * Sprite editor windows gain input focus on first click (there's an option to disable this behaviour too)
        * Zoom with Ctrl+resize window (in addition to Ctrl+Scrollwheel already implemented)
        * Key shortcuts in Sprite editor windows
        Submission for the Paint bounty.
      Version 2.27. Tagged as 'Paint-2_27'
  11. 25 Aug, 2019 1 commit
    • ROOL's avatar
      Colour handling enhancements · 18f461a5
      ROOL authored
        * Artist friendly colour ordering of 256 colour palette, and option to reorder pixel data for the remapped palette
        * Full 256 colour sprites can be created (as well as 64/16 entry VIDC compatible ones)
        * Colour indicator swatch in the bottom left corner of the sprite window
        * Adjust click on colours to paint with background colour
        * Shift-select as a shortcut to Paint > Select colour
        * Shift-adjust ditto for background colour
        Submission for the Paint bounty.
      Version 2.26. Tagged as 'Paint-2_26'
  12. 08 Jun, 2019 1 commit
    • ROOL's avatar
      Add clipboard/cut and paste to sprite filer · 3be21b3b
      ROOL authored
        * Sprite filer window can now gain input focus
        * Change sprite/selection menu to add clipboard operations
        * Change 'Copy' to 'Copy as' to keep original copy with rename option
        * Add clipboard copy/paste/cut functionality
        * Add key bindings for clipboard bits
        * Remove existing drag of selection and replace with drag and drop protocol data export
        * Add drag and drop data import
        Submission for Clipboard Support bounty.
      Version 2.24. Tagged as 'Paint-2_24'
  13. 27 Mar, 2014 1 commit
    • Jeffrey Lee's avatar
      Various bugfixes. Improve sprite info dialog. · 3a9a3a2c
      Jeffrey Lee authored
        - Handling of currently selected foreground & background colour rewritten; colour is now stored as a 'main_colour' struct, in order to allow representation of alpha level, pixel colour/palette index (which must be 4 bytes for things like CMYK) and ECF index (previously encoded as negative colour values). Fixes crashes when editing RISC OS 5 32bpp ARGB sprites. Note that although the alpha level is now stored internally, and tools should mostly respect it, palette/colour picker limitations mean that only 0/255 is available when selecting colours.
        - "Select colour" code rewritten to decode all the new pixel formats correctly; colours_entry() now accepts a sprite mode word instead of a number-of-colours value
        - "Full info" display tweaked to give more information about the mask (now displays no mask, normal mask, alpha mask, alpha channel)
        - Sprite info dialog extended to display lots more information, including OS version compatibility
        - Fix sprite menu to disallow add/remove mask option if the sprite has a RISC OS 5 alpha channel
        - Fix ECF pattern that's used for the background of masked sprites to get black/white colour values from ColourTrans when in >8bpp modes, to ensure correct colours in new RISC OS 5 modes
        - Fix palette window to render ECF patterns correctly - when creating the sprite that shows the ECF pattern in the palette, psprite_setup_ecf() was failing to set its palette due to passing a sprite pointer to ColourTrans but setting the flags as if it was a sprite name
        - Fix sprwindow_redisplay() and sprwindow_invalidate() to refresh the display correctly when in full info mode; was previously assuming only one column of sprites visible
        - Fix sprites with alpha channels to have the mask ECF pattern plotted in the background
        Files changed:
        - Resources/UK/Messages, Resources/UK/Templates,fec, c/Colours, c/Main, c/Menus, c/PSprite, c/SprWindow, c/Tools, h/Colours, h/MenuD, h/PSprite, h/main
        Tested on BB-xM
        Amongst others, fixes issue reported on forums with spritefile window not refreshing correctly when in full info display with multiple columns:
      Version 2.16. Tagged as 'Paint-2_16'
  14. 11 Dec, 2010 1 commit
  15. 29 Nov, 2010 1 commit
    • Robert Sprowson's avatar
      Fix abort when sorting the sprites by name and one or more sprite viewers are... · 52984de9
      Robert Sprowson authored
      Fix abort when sorting the sprites by name and one or more sprite viewers are open, also massively simplified it since the copying around of main_sprite blocks was pointless - much simpler to just rejoin the linked list leaving the data in place.
      *Tidy up
       Delete awk.*, change to use central 'AwkVers' script.
       Delete h.types.
       Delete h.Paint, it's a duplicate of h.main.
       Delete writepixel, swap to using the one in RISCOS_Lib
       Retire 'h.fixes', switches collapsed, bugfixes proven after 18 years use.
       Cast away some warnings.
       Sprinkled in some consts, moved pointer qualifiers to get syntax colouring
       Remove local SWI defines, read from <swis.h> now.
       !MkInstall now installs into <Install$Dir>.Apps
      *Little UI changes
       Make the colour number in the colour picker be in the right place vertically
       and correct horizontal position of 'T' and 'E' for ECFs.
       In the create new sprite dialogue box the 32k and 16M options are shaded
       when a palette is requested, this avoids the problem of selecting a deep
       colour mode (which trapped the radio icon in a shaded paletted selection).
       The 'Selection' menu is now shaded when there are zero sprites in the
      *Sprite filer
       Fix tiled main window fill to work in EX0 modes and not overwrite in EX2
       modes (was using the sprite's mode word not the current mode to deduce eigen
       factors), leading to odd chequer board areas not being redrawn.
       Refactored main_clear_background() to use stronger typing of RISC_OSLib
       rather than _swix where possible.
       A failure to get the Wimp pixel translation table now falls back to solid
       Double clicking on a sprite in the sprite file window no longer leaves it
       selected, to mimic the filer.
       Set DISPLAY_MARGIN to 0 to counter for the recent increase from 32 to 40
       of main_FILER_TextHeight
       Added 'Sort by size' after 'Sort by name'
      Version 2.02. Tagged as 'Paint-2_02'
  16. 27 Jul, 2007 1 commit
    • Steve Revill's avatar
      Changes to SpriteFile window to allow selections and sprite edit window... · 83811440
      Steve Revill authored
      Changes to SpriteFile window to allow selections and sprite edit window changed to improve positioning accuracy.
        * Wimp_EScroll event added to make wheelmouse work.
        * Tool rubber banding now snaps to pixel centres making location easier.
        * flickering of box stopped in move (hand) tool.
        * Bottom left of sprites used in painting aligned with grid and sprite plotted
          directly under moving version.
        * Text painting now plots under the moving version of the text.
        * copy, move and hand tools cancel dragging with Adjust.
        * SpriteFile window changed to allow selections using Select,Adjust or Drag.
        * Alt-Select/Adjust on name allows renaming of sprite.
        * TAB moves rename icon to next sprite.
        * Shift TAB moves rename icon to previous sprite
        * Ctrl-Return renames sprite and moves the rename icon to the
          next sprite.
       V2 changes
        * Rubber band rectangular boxes with 0 width or height drawn as a
         line so they don't disappear.
        * Parallelogram rubber band where all the points are in line drawn
          as a line so they don't disappear.
        Tested on Iyonix RO5.10
        Programmer tested only.
      Changed by:
        Colin Granville
      Version 1.98. Tagged as 'Paint-1_98'
  17. 21 Feb, 2003 1 commit
    • Robert Sprowson's avatar
      Deleted some junk from CVS. · 6244b2ae
      Robert Sprowson authored
      On creating a new sprite (which is white) an attempt is made to select the
      furthest colour from white in the palette.
      Corrected icon shading in create dialogue,redid create template.
      On closing a file the sprites are freed in reverse order in an attempt to
      make it faster (as the blocks are flex'd in the other order) - will speed
      up some situations.
      When there are 0 sprites in a file the "Save" entry is greyed,this was
      causing a internal error nasty looking error box before.
      Tweak to allow the debug to be compiled again.
      Filesize info box now used OS_ConvertFileSize as the display field
      overflowed for files > 1M ish.
      File info box made longer than 50 characters,that was a bit stingy.
      Local flood fill with transparent mask added.
      Reworded some of the messages.
      Added "sort by name" to misc menu - sorts the sprites by name oddly enough.
      The delete rows/columns now rounds up the grid coordinates,before there
      were cases where you could never quite select the edge column/row,for
      example a 79*98 sprites zoomed to x8 versus x7.
      Version 1.96. Tagged as 'Paint-1_96'
  18. 13 Jan, 2003 1 commit
  19. 05 Nov, 1996 1 commit