I am trying to convert the following code to purebasic i have attempted it but it crashes my program can anyone give me a hand converting it if it is possible.
It uses unsigned word values so i was trying to use a long, although the color value is a 32 bit unsigned value i shoudl be able to poke in the value from a long only all the colours will not be available am i correct in this assumption ?
i am not to worried about colour just want to get it working, thansk for any help.
Uint16 *bufp;
bufp = (Uint16 *)screen->pixels + y*screen->pitch/2 + x;
*bufp = color;
*bufp.l = *screen\pixels + y * *screen\pitch/2 + x
PokeL(*bufp,0)