RotateBrush() may destroy hardwarebrush
Posted: Mon Mar 18, 2019 7:28 pm
There are two display height sized brushes. The first is created horizontally and then rotated, the second is created in the same size as the other after 90 degree rotation.
The rotated brush does not displayed on the GLGalore display.
Tested on OS4 and MOS and the results are the same.
Here is a test script.
The rotated brush does not displayed on the GLGalore display.
Tested on OS4 and MOS and the results are the same.
Here is a test script.
Code: Select all
@REQUIRE "glgalore.hwp"
@DISPLAY {mode="windowed", title="test", borderless=False, width=800, height=600, nomodeswitch=False}
CreateBrush(101,600,120,#RED,{hardware=True})
CreateBrush(100,120,600,#RED,{hardware=True})
RotateBrush(101,0)
BeginDoubleBuffer(True)
game={
scroll = 0,
}
Function p_draw()
Cls
game.scroll=Wrap(game.scroll-1,0,600)
DisplayBrush(101,384,game.scroll)
DisplayBrush(101,384,game.scroll-599)
DisplayBrush(100,84,game.scroll)
DisplayBrush(100,84,game.scroll-599)
Flip
EndFunction
SetInterval(1,p_draw,1000/60)
Repeat
CheckEvent
Forever