Version 6, last updated by ewing at Apr 10 17:58 2009 UTC
This is a prototype copy/paste (clipboard/pasteboard) API for SDL.
This is based loosely on Sam's SDL_scrap implementation with considerable changes.
This implementation works against SDL 1.2. If feedback is positive, the goal will be to integrate this as part of the SDL core for SDL 1.3.
This library depends on only SDL, but SDL_ttf is required to build and run the test program.
CMake build system included.
See the Files section for prebuilt binaries.
To checkout a copy of the source (using Mercurial):
hg clone http://hg.assembla.com/SDL_Clipboard
Current implementation status:
Mac OS X: Done
Windows: Done
X11: Suspect
QNX: Broken
Issues:
To paste an image from the pasteboard on Mac OS X, you need to patch SDL (currently 1.2.13). There is a bug in SDL's BMP handler that does not handle negative height values in the BMP headers. Apple appears to use this to denote an image is inverted. Without the patch, pasting an image from the pasteboard will result in a crash. (SDL bug: 724)
Additional Information: