GLBasic forum

Main forum => Bug Reports => Topic started by: MacReeg on 2012-Nov-21

Title: CLEARSCREEN RGB(r,g,b) doesn't work correctly with GP2X Wiz
Post by: MacReeg on 2012-Nov-21
Hi!

At the moment I work on a little game for the GP2X Wiz. I try to clear my backbuffer with a defined color but CLEARSCREEN RGB(r,g,b) doesn't work correctly. It works fine with Windows but not really with the Wiz. I use GLBasic IDE, Version: 10.283

Greets, MacReeg.
Title: Re: CLEARSCREEN RGB(r,g,b) doesn't work correctly with GP2X Wiz
Post by: erico on 2012-Nov-22
If you need an alternative, try drawing a big rectangle screen size the color you want (drawrect 0,0,320,240,rgb(r,g,b)). Heard that works fine.
Had a similar issue on caanoo long time ago.
Hope it helps. :good:
Title: Re: CLEARSCREEN RGB(r,g,b) doesn't work correctly with GP2X Wiz
Post by: MacReeg on 2012-Nov-22
@erico: Thanks for your help, I will do this.

@Kitty hello: Is there a performance difference between CLEARSCREEN and DRAWRECT?