Okay, I’m back on the list again. I quit for a while because somuch
email was coming in that my mail-box was kinda looking a bit flooded
You prolly won’t remember, but I was aking a couple of months back I was
in asking questions about a pixel reading function for SDL. Anyway,after
lots of mails, and even a correspondance on the subject with Sam
Lantinga about I found that my pixel readinf function was perfectly
written and had no bugs. But my pixel read function still refused to
work. Anyway, so, I had to take a break for my school exams, but got
back on the case again a short while back. I did a bit of debugging, as
sugested to me by Julian Peterson in my original questioning thingy.
After a bit of work, I found that the source of my problems, the source
of every single seg fault the popped up was the SDL_GetRGB function!!!
I also tried writing a program that obtained a uint32 pixel value from 2
sources, 1 from my pixel read func, the other from the SDL_MapRGB
function and then running both of them through SDL_GetRGB, and not
surprisingly, both of these obtained Uint32s (Which were identical, when
I examined them) caused a seg fault! So, the question is, is there
something screwed up with SDL_GetRGB, because it sure as hell looks that
way on my system. Has anyone else tried this and had this prob, and more
importantly, does anyone know a simple fix??? (Or else I’ll have to
write a seperate buffer type class that tracks RGB values
Anyway, as you can understand, this is kinda pissing me off :-)–
Sp1k3 Cann1bal (@Sp1k3_Cann1bal)
Pig Iron Studios
"He who fights with monsters should look to it that he himself
does not become a monster…When you gaze long into the abyss,
the abyss also gazes into you…" - Frederick Nietzsche