aboutsummaryrefslogtreecommitdiff
path: root/util/fbcompose/plugins/xrender/preview/PreviewPlugin.cc
diff options
context:
space:
mode:
authorPaul Tagliamonte <paultag@fluxbox.org>2011-12-10 16:43:24 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2011-12-10 16:43:24 (GMT)
commit5e75c312050185267b05388a3991b932b447a75f (patch)
treeb7b39d55993e612f7bfb373a161f6f5cb4a1f81f /util/fbcompose/plugins/xrender/preview/PreviewPlugin.cc
parent596c283553fb2da7e9204621347462bb46b83c4d (diff)
downloadfluxbox_paul-fluxbox-gsoc-2011-integration.zip
fluxbox_paul-fluxbox-gsoc-2011-integration.tar.bz2
Fixing up the branch to use some of the changes that were made since the fork.fluxbox-gsoc-2011-integration
The operator "=" was ditched in favor of .reset( because (I'm quoting here): "it was an accident waiting to happen". Well. It builds now.
Diffstat (limited to 'util/fbcompose/plugins/xrender/preview/PreviewPlugin.cc')
-rw-r--r--util/fbcompose/plugins/xrender/preview/PreviewPlugin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/fbcompose/plugins/xrender/preview/PreviewPlugin.cc b/util/fbcompose/plugins/xrender/preview/PreviewPlugin.cc
index 14a0e61..fdc4d29 100644
--- a/util/fbcompose/plugins/xrender/preview/PreviewPlugin.cc
+++ b/util/fbcompose/plugins/xrender/preview/PreviewPlugin.cc
@@ -59,7 +59,7 @@ PreviewPlugin::PreviewPlugin(const BaseScreen &screen, const std::vector<FbTk::F
59 unsigned long mask_color = 0x01010101 * PREVIEW_ALPHA; 59 unsigned long mask_color = 0x01010101 * PREVIEW_ALPHA;
60 Pixmap mask_pixmap = createSolidPixmap(screen, MAX_PREVIEW_WIDTH, MAX_PREVIEW_HEIGHT, mask_color); 60 Pixmap mask_pixmap = createSolidPixmap(screen, MAX_PREVIEW_WIDTH, MAX_PREVIEW_HEIGHT, mask_color);
61 XRenderPictFormat *pict_format = XRenderFindStandardFormat(display(), PictStandardARGB32); 61 XRenderPictFormat *pict_format = XRenderFindStandardFormat(display(), PictStandardARGB32);
62 m_mask_picture = new XRenderPicture(xrenderScreen(), pict_format, FilterFast); 62 m_mask_picture.reset( new XRenderPicture(xrenderScreen(), pict_format, FilterFast));
63 m_mask_picture->setPixmap(mask_pixmap, true); 63 m_mask_picture->setPixmap(mask_pixmap, true);
64 64
65 m_previous_damage.width = 0; 65 m_previous_damage.width = 0;