Page 1 of 1

Plots aren't drawn under sprites

Posted: Fri Oct 29, 2021 6:49 pm
by jPV
I tried to draw a Plot() under a sprite, but it doesn't seem to be drawn. Tested on MorphOS.

Code: Select all

CreateBrush(1, 32, 32, #BLUE)
CreateSprite(1, #BRUSH, 1)
DisplaySprite(1, 100, 100)
Plot(110, 90, #RED)
Box(115, 90, 1, 1, #GREEN)
Plot(110, 110, #RED) ; Plot under a sprite isn't drawn
Box(115, 110, 1, 1, #GREEN) ; Box is drawn though
Print("Press the LMB to reveal dot(s) under the sprite.")
WaitLeftMouse()
DisplaySprite(1, 200, 100)
WaitLeftMouse()

Re: Plots aren't drawn under sprites

Posted: Sat Oct 30, 2021 11:53 pm
by airsoftsoftwair

Code: Select all

- Fix: Plot() didn't draw anything if the pixel to be drawn collided with the opaque area of a sprite