[SDL] SDL_CreateRGBSurface is black?

Brian Barrett brian.ripoff at gmail.com
Mon Jul 12 07:40:12 PDT 2010


Your code lacks error checking. Almost every SDL function can return an
error. See the SDL documentation for the different function signatures and
how to detect these errors (http://www.libsdl.org/cgi/docwiki.cgi) You
should detect these and try obtain the value of "SDL_GetError()", which
might hint at what is going on.

Regards,
       -- Brian.

On 11 July 2010 23:28, mutable <rswhite4 at gmail.com> wrote:

>
> What's now the problem? :/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100712/e8a7a32c/attachment-0008.htm>


More information about the SDL mailing list