Mercurial > hg > aimc
diff trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc @ 412:9c26f6532ea3
- Linux build for cairo module
author | tomwalters |
---|---|
date | Sun, 24 Oct 2010 22:35:49 +0000 |
parents | a908972d234e |
children | f2dd5788e1d8 |
line wrap: on
line diff
--- a/trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc Thu Oct 21 01:46:39 2010 +0000 +++ b/trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc Sun Oct 24 22:35:49 2010 +0000 @@ -31,8 +31,9 @@ #include <string.h> #include <stdio.h> #include <math.h> +#include <limits.h> -#include "cairo-quartz.h" +//#include "cairo-quartz.h" #include "Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h" @@ -84,7 +85,7 @@ // Cairo's RGB24 format has 32-bit pixels with the upper 8 bits unused. // This is not the same as the plotutils PNG format. This information is transferred by the // function GetPixelFormat. The pixel format is dealt with by the reciever. - m_cSurface = cairo_quartz_surface_create(CAIRO_FORMAT_RGB24, + m_cSurface = cairo_image_surface_create(CAIRO_FORMAT_RGB24, m_iWidth, m_iHeight); m_cCr = cairo_create(m_cSurface);