summaryrefslogtreecommitdiff
path: root/common/canvas_utils.h
AgeCommit message (Collapse)AuthorFilesLines
2012-03-20Use SPICE_{BEGIN,END}_DECLSMarc-André Lureau1-6/+4
2012-03-20Use a log handler to modify abort() behaviourMarc-André Lureau1-1/+1
Be more library friendly, by not aborting in library errors. spice_common now includes a proper log handler that will abort by default when reaching a warning. SPICE_ABORT_LEVEL can be changed to modify run-time abort level. SPICE_DEBUG_LEVEL can be changed to be more verbose. By default, only log level more importants than WARNING. Only memory-related functions are allowed to abort(), since they are not recoverable errors in the library.
2012-03-20common: add windows.h where required, make gdi_handlers staticMarc-André Lureau1-0/+4
This patch has not been verified with VS/brew. It should be safe hopefully. Compilation is fine with mingw32/spice-gtk.
2012-03-20common: add extern "C" guards to headersChristophe Fergeau1-0/+8
Since some spice C++ code is using code from common/, the C functions need to be marked as such for the C++ compiler, otherwise we'll get linkage issues.
2012-03-20Make each surface its own depth/formatAlexander Larsson1-1/+2
Surface creation now specifies the exact format, not only the bit depth of each surface which is used for rendering. Additionally we now actually store the surfaces in that format, instead of converting everything to 32bpp when drawing or e.g. handling palettes.
2012-03-20common: Add lookaside storage for pixman image formatAlexander Larsson1-0/+6
Ideally we should just read this from the pixman image, but there is no API to do so in stable pixman, so we store it.
2012-03-20Relicense everything from GPL to LGPL 2.1+Alexander Larsson1-9/+9
2012-03-20Use pixman_image_t instead of cairo_surface_t as the generic pixman containerAlexander Larsson1-15/+15
This allows us to use the simpler dependency of pixman outside of the cairo backend, and it later lets us move the cairo backend to using pixman only.
2012-03-20Use standard int types and <spice/types.h>Alexander Larsson1-7/+1
2012-03-20fresh startYaniv Kamay1-0/+67