I'm trying to draw a fill pattern that is supposed to look like the one that checkbox.gadget displays when disabled (ghosted). What would the area fill pattern definition look like? I need to pass this definition as an argument to the SetAfPt() macro, or alternatively, as a tag value to the fillrect image class.
Fri, 2020-07-03 16:02
#1
Area fill pattern
@thomas
Thanks a lot - will try it out.
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2
@thomas
I'm calling SetAfPt() with the parameters as advised. The call is preceded by a SetAPen() and followed by a RectFill(). Nothing seems to be drawn. Are any other settings necessary?
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2
This works for me:
@thomas
Thanks again, works fine now. In the end it was a typical late-night coding error: my settings were correct but I overlooked a wrong coordinate for RectFill(). Doh!
AmigaOne X5000-020 / 2GB RAM / Sapphire Pulse Radeon RX 560 / AmigaOS 4.1 Final Edition Update 2