Hello-
I hope this is not the second time getting this message. I used the wrong
account to send it earlier and sdl (i think) rejected it.---------------------------------------------------------
Now on with the problem…
Let me just get my machine info out of the way real quick
PII 400
RedHat 7.1
XFree86 Version 4.0.3
Vid card: ATI Technologies Inc 3D Rage Pro AGP 1X/2X
Vid card driver: ati
modules loaded by X:
Section "Module"
Load "GLcore"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "pex5"
Load "dri"
Load "glx"
Load "pex5"
Load "record"
Load "xie"
EndSection
Being an SDL newbie I do not know if this is incorrect behavior or not but I
wanted to ask. I have noticed that when I create a SDL_Surface using :
if ((screen = SDL_SetVideoMode(WIDTH,HEIGHT,BPP,0)) == 0) {
}
that the flags for screen are actually 0x20000000 which is SDL_HWPALETTE.
I dont know if this is causing the segfault in my application but the segfault
is in the SDL code. There is a null pointer that SDL tries to reference and I think
that it is in SDL_video.c in UpdateRects when it calls this:
saved_colors = pal->colors;
UpdateRect is called in my code after I draw to an SDL_Surface using the
getpixel/putpixel calls found in the example code.
Thanks,
Nick Kidd
----- End forwarded message -----