Scalebrush on hardware brush buggy
Posted: Wed Aug 12, 2020 10:42 am
OS4, old Radeon, minigl.
On a glgalore display the scaled hardware brushes don't display at all if a part of the brush leaves out of the display.
If ScaleBrush() preceeds CopyBrush(src,dest,{hardware=true]) the brush is ok and displays even partly.
If ScaleBrush() targets a hardware brush, then the brush only displays if no cropping needed at displayed position.
In the example, the last two DisplayBrush() should stamp the scaled hardware brush, but the last one shows nothing because the x coordinate is out of the display area.
It is maybe connecting to the similar RotateBrush() problem discribed here: viewtopic.php?f=25&t=2103
On a glgalore display the scaled hardware brushes don't display at all if a part of the brush leaves out of the display.
If ScaleBrush() preceeds CopyBrush(src,dest,{hardware=true]) the brush is ok and displays even partly.
If ScaleBrush() targets a hardware brush, then the brush only displays if no cropping needed at displayed position.
Code: Select all
@REQUIRE "glgalore.hwp"
@DISPLAY 1,{mode="windowed", width=1280, height=720}
BeginDoubleBuffer(True)
CreateTextObject(1,"Hello Hollywood!")
ConvertToBrush(#TEXTOBJECT,1,1)
ScaleBrush(1,120,32)
CopyBrush(1,10,{hardware=True})
CopyBrush(1,20,{hardware=True})
ScaleBrush(20,130,32)
DisplayBrush(10,0,0)
DisplayBrush(10,-10,64)
DisplayBrush(20,0,128)
DisplayBrush(20,-10,172)
Flip
WaitLeftMouse
It is maybe connecting to the similar RotateBrush() problem discribed here: viewtopic.php?f=25&t=2103