2003-05-12 -+- Schwarzy -+- l.boulard qwerty wanadoo.fr -+- 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);
---
-+- 217.128.35.18 = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507
2003-07-15 -+- Lee -+- projects@REMOVEUPPERCASEcoolname.com -+- 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. -+- 207.219.229.4 = Mozilla/4.79 [en] (X11; U; Linux 2.4.18-19.7.x i586)