Strange usescreen behaviour

Previous topic - Next topic

MrPlow

Hi

I am trying to using sprite2mem and mem2sprite for colourclash detection and
found some strange behaviour... after using sprite2mem etc the rest of the images render in miniture version of the screen and not on  the virtual screen as hoped.

I am working with v12.001

USESCREEN  0

Drawobj() // draws on the virtual screen

// after colourclash is used everything left draws on the miniscreen before stretchsprite?? Any ideas
colourclash() // use sprite2mem etc.

drawstats() //
drawother()

myshowscreen // using USESCREEN -1 and stretchsprite
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Also - I tried my routine using getpixel and setpixel (not ideal!!) but works perfectly...
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

kanonet

There has been a bug with CREATESCREEN and MEM2SPRITE that has been fixed in one of the V11 or V12 betas, maybe in a later version than yours? Also there may be another bug in USESCREEN+SPRITE2MEM, maybe yours is related to that?
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Moru

In general, try to get the latest version of GLBasic and test that first.

Even though the web update says your version is up to date, that only goes for that update tree. There might be a newer version for download on the front page. If you look in the upper right corner here on the forums, there is a version number displayed with a link. Use that for downloading that version.