Hi been messing with SDl again :p

Just starting out? Need help? Post your questions and find answers here.
Oly
User
User
Posts: 15
Joined: Sat Aug 21, 2004 12:46 pm

Hi been messing with SDl again :p

Post 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
Oly
User
User
Posts: 15
Joined: Sat Aug 21, 2004 12:46 pm

Re: Hi been messing with SDl again :p

Post 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
Post Reply