beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / splash / SplashPattern.cc
blob28ca4995882a51f4e92674983c855a9c0e412ec3
1 //========================================================================
2 //
3 // SplashPattern.cc
4 //
5 //========================================================================
7 //========================================================================
8 //
9 // Modified under the Poppler project - http://poppler.freedesktop.org
11 // All changes made under the Poppler project to this file are licensed
12 // under GPL version 2 or later
14 // Copyright (C) 2010, 2011 Thomas Freitag <Thomas.Freitag@alfa.de>
16 // To see a description of the changes please see the Changelog file that
17 // came with your tarball or type make ChangeLog if you are building from git
19 //========================================================================
21 #include <config.h>
23 #ifdef USE_GCC_PRAGMAS
24 #pragma implementation
25 #endif
27 #include "SplashMath.h"
28 #include "SplashScreen.h"
29 #include "SplashPattern.h"
31 //------------------------------------------------------------------------
32 // SplashPattern
33 //------------------------------------------------------------------------
35 SplashPattern::SplashPattern() {
38 SplashPattern::~SplashPattern() {
41 //------------------------------------------------------------------------
42 // SplashSolidColor
43 //------------------------------------------------------------------------
45 SplashSolidColor::SplashSolidColor(SplashColorPtr colorA) {
46 splashColorCopy(color, colorA);
49 SplashSolidColor::~SplashSolidColor() {
52 GBool SplashSolidColor::getColor(int x, int y, SplashColorPtr c) {
53 splashColorCopy(c, color);
54 return gTrue;