[SDL] N00b questions... (I'm sorry! Stop slapping me with old fish ; ))

Jonathan Dearborn grimfang4 at hotmail.com
Fri Dec 8 05:47:28 PST 2006


There's also an extra open parenthesis there...  I'm sure you'd notice when compiling.

> From: ochal at kefren.be> To: sdl at libsdl.org> Date: Thu, 7 Dec 2006 23:41:23 +0100> Subject: Re: [SDL] N00b questions... (I'm sorry! Stop slapping me with old fish ; ))> > On Thu, 2006-12-07 at 17:43 -0500, James Barrett wrote:> > Ochal Christophe wrote:> > >> > > On a sidenote, can someone tell me why the following doesn't work?> > >> > > fwrite((screen->format->BitsPerPixel, sizeof(unsigned int),> > > (sizeof(unsigned int)/sizeof(unsigned int)), file);> > >> > > Where screen is a *Surface and file a filepointer, i know it's related> > > to the way i passed screen->format->BitsPerPixel, fwrite expects a> > > pointer to the value of BitsPerPixel, but for the life of me i can't> > > remember how it was done, digged up my C manuals to read up on pointers> > > again, but if someone could tell me what my obvious error is i'd> > > appreciate it ;)> > > > Wthout digging out my pointer reference, I think it's> > > > &screen->format->BitsPerPixel> > Yep, it is, thx mate!> > > _______________________________________________> SDL mailing list> SDL at libsdl.org> http://www.libsdl.org/mailman/listinfo/sdl
_________________________________________________________________
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061208/d34cae76/attachment.html 


More information about the SDL mailing list