summaryrefslogtreecommitdiffstats
path: root/client/pixman_utils.cpp
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-02-08 11:48:12 +0100
committerAlexander Larsson <alexl@redhat.com>2010-02-23 14:43:15 +0100
commit9091e763a80d368114100d8452e26af67c5829b3 (patch)
treecd1129b6bdebbe7957e5f98cb1bd85b725f7eabc /client/pixman_utils.cpp
parent2233dd02a191200b5d33f0b37c32ebf05880c126 (diff)
downloadspice-9091e763a80d368114100d8452e26af67c5829b3.tar.gz
spice-9091e763a80d368114100d8452e26af67c5829b3.tar.xz
spice-9091e763a80d368114100d8452e26af67c5829b3.zip
Add pixman utilities
This includes: * pixman region from SpiceRects * rop2 enum * solid fill * solid fill with rop * tiled fill * tiled fill with rop * blit * blit with rop * copy rect
Diffstat (limited to 'client/pixman_utils.cpp')
-rw-r--r--client/pixman_utils.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/client/pixman_utils.cpp b/client/pixman_utils.cpp
new file mode 100644
index 00000000..337e07cb
--- /dev/null
+++ b/client/pixman_utils.cpp
@@ -0,0 +1,25 @@
+/*
+ Copyright (C) 2009 Red Hat, Inc.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of
+ the License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "common.h"
+#include "utils.h"
+
+
+#define CANVAS_ERROR(format, ...) THROW(format, ## __VA_ARGS__)
+
+#include "../common/pixman_utils.c"
+