Here is the code that tells it more understandable:
Code: Select all
@REQUIRE "glgalore"
CreateTextObject(1,"Hollywood",{align=#RIGHT,color=#GRAY})
ConvertToBrush(#TEXTOBJECT,1,1)
RemoveBrushPalette(1)
BeginDoubleBuffer(True)
CopyBrush(1,2,{hardware=True})
DisplayBrush(2,100,10)
DebugPrint(GetAttribute(#BRUSH,2,#ATTRHARDWARE))
Flip()
WaitLeftMouse
> test.hws:9: Wrong usage/parameters for this command!
> Read the documentation!
If CopyBrush() could handle this automatically, that would be a bit cleaner I think.
Bye