st-flexipatch icon indicating copy to clipboard operation
st-flexipatch copied to clipboard

Add selectioncolors patch

Open JCallicoat opened this issue 11 months ago • 3 comments

Changes mode in Glyph struct from ushort to uint32_t per https://github.com/bakkeby/st-flexipatch/issues/91#issuecomment-1918439030 and adds latest version of selectioncolors patch.

JCallicoat avatar Feb 26 '24 10:02 JCallicoat

Sorry to interrupt, but it looks like the bit 14 is still free in the glyph attributes. So there should be no need to increase the size of the bitfield.

veltza avatar Feb 26 '24 14:02 veltza

Sorry to interrupt, but it looks like the bit 14 is still free in the glyph attributes. So there should be no need to increase the size of the bitfield.

Oh looks like you are right, nice catch. @bakkeby should I back out the change to uint32_t and just use bit 14 here and you can deal with increasing the size if needed for other patches in the future?

JCallicoat avatar Feb 26 '24 20:02 JCallicoat

Yes let's just use bit 14 then and change the data type later if needed. The code changes themselves look good.

There is potentially a conflict with the dynamic cursor color patch, but not sure how one might expect them to work together in this context so probably fine letting selection colors take precedence here.

bakkeby avatar Feb 27 '24 20:02 bakkeby

Done.

JCallicoat avatar Feb 28 '24 06:02 JCallicoat

Thanks @JCallicoat.

bakkeby avatar Feb 28 '24 13:02 bakkeby