1
Bug Reports / Glbasic 11.414, sprite hole don't work
« on: 2013-May-19 »
this simple program work correctly in GlBasic 10.283 and creates a sprite hole, while don't work in Glbasic 11.414 (see the picture)
Any idea?
Ciao
id% = GENSPRITE()
// Create virtual screen
CREATESCREEN 1,id%,32,32
USESCREEN 1
DRAWRECT 0,0,31,31,RGB(255,255,255) // white background os the sprite
DRAWRECT 4,4,24,24,RGB(255,0,128) // transparent hole in the sprite
USESCREEN -1
DRAWRECT 100,100,70,70,RGB(255,0,0) // draw the red background
DRAWSPRITE id%,120,120 // draw the sprite
SHOWSCREEN
MOUSEWAIT
Any idea?
Ciao
id% = GENSPRITE()
// Create virtual screen
CREATESCREEN 1,id%,32,32
USESCREEN 1
DRAWRECT 0,0,31,31,RGB(255,255,255) // white background os the sprite
DRAWRECT 4,4,24,24,RGB(255,0,128) // transparent hole in the sprite
USESCREEN -1
DRAWRECT 100,100,70,70,RGB(255,0,0) // draw the red background
DRAWSPRITE id%,120,120 // draw the sprite
SHOWSCREEN
MOUSEWAIT

