Page 1 of 1

Hi been messing with SDl again :p

Posted: Wed Oct 27, 2004 8:41 pm
by Oly
having probs with screen\pixels and screen\pitch returning wrong values, anyone else had a similar problem or know possible reason why?

I know this cuz i wrote the same progrm in c and pb and on printing out the pitch and pixels values they are different for a 800x600x16bit screen

in c i get
pixel=19529760
pitch=1600

in pb i get
pixel=2097152
pitch=1200

could really do with a hand with this or an example on plottting a pixel using SDL in PB :p

Re: Hi been messing with SDl again :p

Posted: Fri Oct 29, 2004 9:48 pm
by Oly
Couple of example SDL progs on display a bitmap another drawing rectangles using alpha blending. you will need sdl.res from the linux purebasic and to have the sdl dll installed.

The pixel plotting code is included but still does not work if some one can get it working or figure out why it would be most appreciated.

http://www.4-duality.co.uk/SDL_Examples.zip