Talkback for article: 288, May2003
Implementing a scroller in SDL graphics
From: Schwarzy <l.boulard qwerty wanadoo.fr>
[ date: 2003-05-12 ]
in this part:
---
scroll_surface = SDL_DisplayFormat(tmp);
SDL_FreeSurface(tmp);
---
The line:
---
temp_surface = SDL_DisplayFormat(tmp);
---
is missing.
The correct code should be:
---
scroll_surface = SDL_DisplayFormat(tmp);
temp_surface = SDL_DisplayFormat(tmp);
SDL_FreeSurface(tmp);
---
From: Lee <projects(at)REMOVEUPPERCASEcoolname.com>
[ date: 2003-07-15 ]
Instructions for compling would be helpful. Something like this works:
cc -I/usr/local/include/SDL -c scroll.c
cc -o scroll scroll.o -lSDL -lSDL_image
("locate SDL.h" and "locate SDL_image.h" tell you if you have them and what to include)
Doh - I made a obvious mistake - hey I need an image file called img.pcx (but it don't really have to be pcx. I just renamed an png).
Fun demo.
2 talkbacks
Due to the increased amount of web spam we have deciced to
removed the talkback posting possibility. You can read old talkbacks
but you can no longer post new ones.
Please contact webmaster(at)linuxfocus.org if you have any questions with regards to this talkback
lftalkback version 3.10