quote:Original post by SysOp_1101 What he is returning is a pointer to an unsigned char[] in memory, not an offset to plug between the brackets. The way that numerous posters suggested is not incorrect. The surface + stride * line simply tells the application to move the current byte pointer (stride * line) bytes ahead of the current pointer (thus setting it at the next line). You then use the returned pointer as the offset in memory to begin reading from or writing to.
Bzzzzzz - I messed up. What can I say? I looked at it from a totally different perspective (not a wrong one in general, I dare maintain, but slightly off-topic).I even missed the context because I didn''t pay attention to the argument names... However, I never hinted the other posters got it wrong. That, if for no other reason than the fact that I pressed "Reply" when there were no posts in yet, is not true.
Cheers, Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
Hehe, wasn''t trying to be harsh on ya'' man. You''re human just like the rest of us (been there done that sort of thing myself).
quote: However, I never hinted the other posters got it wrong.
I apologize for the misunderstanding, I was in no way trying to insinuate that you did. The answer in your post just seemed to contradict the answers that were already posted (for reasons that you''ve cleared up in your reply).
quote:Original post by SysOp_1101 You''re human just like the rest of us
Care to bet your head on that? Hehehe... Just kidding
quote:Original post by SysOp_1101 I apologize for the misunderstanding, I was in no way trying to insinuate that you did.
Np, I should''ve paid more attention. Actually, I like it when people correct me when I get something wrong as I''m rather absent-minded
Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared