Mercurial > hg > aimc
changeset 127:acb14b11225f
- Linux build for cairo module
author | tomwalters |
---|---|
date | Sun, 24 Oct 2010 22:35:49 +0000 |
parents | a9cb396529c2 |
children | 9af3dea75007 |
files | src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc Thu Oct 21 01:46:39 2010 +0000 +++ b/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);