GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2010-May-25

Title: GETPIXEL with screens
Post by: MrTAToad on 2010-May-25
It appears that trying to use GETPIXEL with a screen always returns 0 :

Code (glbasic) Select
CREATESCREEN 1,0,640,480
USESCREEN 1
DRAWLINE 0,0,100,0,RGB(255,255,0)
DRAWLINE 0,1,100,0,RGB(255,255,0)

DEBUG GETPIXEL(1,0)
USESCREEN -1
Title: Re: GETPIXEL with screens
Post by: Kitty Hello on 2010-Jun-01
Fixed in next update. The bitmap size was ignored and the internal texture size was used instead. Use a power of 2 screen to get rid of that so far.