[SDL] Kylix and SDL

Dejan macakd at tpg.com.au
Thu Jan 20 06:59:43 PST 2005


Stephane Marchesin wrote:
> Murlock wrote:
> 
>> Stephane Marchesin wrote:
>>
>>> Hi,
>>>
>>> We (David Olofson and me) finally got the glSDL backend into a state 
>>> that works and has recieved enough testing for a first beta. The 
>>> resulting patch is there (not posted to the list because of the 
>>> mailing list size filter) :
>>> http://icps.u-strasbg.fr/~marchesin/sdl/glsdl-final.patch
>>
>>
>>
>> Hi,
>>
>> I wanted to test it but I don't understand how patch the SDL source :
>> I'm under Windows with VC.NET so I've downloaded the exe patch from 
>> www.sf.net/projects/gnuwin32 and, of course, the source of SDL 1.2.8 
>> (from the zip)
>>
>> I've tried from the directory which contains SDL.1.2.8 with patch < 
>> glsdl-final.patch and I've got that :
>>
>> E:\Prog\SDL>patch < glsdl-final.patch
>> can't find file to patch at input line 4
>> Perhaps you should have used the -p or --strip option? 
> 
> 
> So, as stated in the error messasge, use patch -p1. That said, I don't 
> know how well patch works under windows.
> 
> Stephane
> 


Hi,

after digging, I've found that the problem occurs with EOL Unix. I've 
converted all files to DOS format and patch -p1 runs fines.

I've also compiled with VC7++ (littles fixs was required) :
SDL_glsdl.c:
#include <unistd.h>, line 38, removed
in glDL_LockHWurface,line 1377 and 1379
a cast must be add to convert the void* pixels in unsigned char*


now, my game runs but I don't know if GLSDL is used or not :
13:12:17 2005 : Video driver : windib
13:12:17 2005 : display : 1152 x 864 x 16 ( 75 Hz )
13:12:17 2005 : SDL_SetVideoMode( 320, 200, 0, SDL_HWSURFACE);
13:12:17 2005 : Info about SDL_Surface retrivied : SDL_SWSURFACE
13:12:17 2005 :   SDL Compiled version : 1.2.8
13:12:17 2005 :   SDL Linked version: 1.2.8

screen->flags & SDL_OPENGL => 0
screen->flags & SDL_INTERNALOPENGL => 0

I'll make more test this week

Cheers,
Murlock




More information about the SDL mailing list