home | tech | misc | code | bookmarks (broken) | contact | README


SDL notes

Troubleshooting

Get black image when rotating/zooming

If you get a black image when rotating/zooming, you probably created the image with alpha = 0x00000000. The alpha argument is the last argument you pass to the SDL_CreateRGBSurface*() function.

This forum topic was helpful.

DirectFB problem for opening device

directfb is one of the videodrivers available for SDL. When using directfb, if you get an error like that:

=======================|  DirectFB 1.0.1  |=======================
     (c) 2001-2007  The DirectFB Organization (directfb.org)
     (c) 2000-2004  Convergence (integrated media) GmbH
   ------------------------------------------------------------

   (*) DirectFB/Core: Single Application Core.  (2008-11-12 15:31)
   (*) Direct/Memcpy: Using Generic 64bit memcpy()
   (!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
       --> No such file or directory
   (!) DirectFB/FBDev: Error opening framebuffer device!
   (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
   (!) DirectFB/Core: Could not initialize 'system' core!
       --> Initialization error!

Check wheter your DISPLAY environment variable is correctly set.