diff options
author | Anders Bakken <anders.bakken@nokia.com> | 2009-07-28 19:43:12 (GMT) |
---|---|---|
committer | Anders Bakken <anders.bakken@nokia.com> | 2009-07-28 19:45:26 (GMT) |
commit | a1c4e70ddb04e364d89bfd39a409c4bcbe0019e4 (patch) | |
tree | e4e1d89e4d25dce13fbbffd92a519b9434640bd1 /src/plugins | |
parent | b0482e0b13ea3c20674515ffdafb66c14231cc56 (diff) | |
download | Qt-a1c4e70ddb04e364d89bfd39a409c4bcbe0019e4.zip Qt-a1c4e70ddb04e364d89bfd39a409c4bcbe0019e4.tar.gz Qt-a1c4e70ddb04e364d89bfd39a409c4bcbe0019e4.tar.bz2 |
Compile with DirectFB < 1.0
These porter duff operations were added for 1.0.
Reviewed-by: Donald <qt-info@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp index 68d4b04..8e06e6a 100644 --- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp +++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp @@ -857,6 +857,7 @@ void QDirectFBPaintEnginePrivate::setCompositionMode(QPainter::CompositionMode m case QPainter::CompositionMode_DestinationOut: surface->SetPorterDuff(surface, DSPD_DST_OUT); break; +#if (Q_DIRECTFB_VERSION >= 0x010000) case QPainter::CompositionMode_SourceAtop: surface->SetPorterDuff(surface, DSPD_SRC_ATOP); break; @@ -866,6 +867,7 @@ void QDirectFBPaintEnginePrivate::setCompositionMode(QPainter::CompositionMode m case QPainter::CompositionMode_Plus: surface->SetPorterDuff(surface, DSPD_ADD); break; +#endif case QPainter::CompositionMode_Xor: surface->SetPorterDuff(surface, DSPD_XOR); break; |