• Jeffrey Lee's avatar
    Various bugfixes. Improve sprite info dialog. · 3a9a3a2c
    Jeffrey Lee authored
    Detail:
      - 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
    Admin:
      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:
      http://www.riscosopen.org/forum/forums/8/topics/2146?page=5#posts-31272
    
    
    Version 2.16. Tagged as 'Paint-2_16'
    3a9a3a2c
Name
Last commit
Last update
Doc Loading commit data...
Resources Loading commit data...
Test Loading commit data...
abs Loading commit data...
aof Loading commit data...
asm Loading commit data...
c Loading commit data...
h Loading commit data...
linked Loading commit data...
map Loading commit data...
o Loading commit data...
od Loading commit data...
oz Loading commit data...
rm Loading commit data...
s Loading commit data...
!Mk,fd7 Loading commit data...
!MkClean,fd7 Loading commit data...
!MkDebug,fd7 Loading commit data...
!MkInstall,fd7 Loading commit data...
!MkRom,fd7 Loading commit data...
.gitattributes Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
VersionASM Loading commit data...
VersionNum Loading commit data...