aboutsummaryrefslogtreecommitdiff
path: root/util/fbcompose/XRenderScreen.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/XRenderScreen.cc
parent596c283553fb2da7e9204621347462bb46b83c4d (diff)
downloadfluxbox_paul-5e75c312050185267b05388a3991b932b447a75f.zip
fluxbox_paul-5e75c312050185267b05388a3991b932b447a75f.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/XRenderScreen.cc')
-rw-r--r--util/fbcompose/XRenderScreen.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/fbcompose/XRenderScreen.cc b/util/fbcompose/XRenderScreen.cc
index 2450576..f6dea8d 100644
--- a/util/fbcompose/XRenderScreen.cc
+++ b/util/fbcompose/XRenderScreen.cc
@@ -116,14 +116,15 @@ void XRenderScreen::initRenderingSurface() {
116 throw InitException("Cannot find the required picture format."); 116 throw InitException("Cannot find the required picture format.");
117 } 117 }
118 118
119 m_rendering_picture = new XRenderPicture(*this, rendering_pict_format, m_pict_filter); 119 m_rendering_picture.reset( new XRenderPicture(*this, rendering_pict_format, m_pict_filter) );
120 m_rendering_picture->setWindow(m_rendering_window, pa, pa_mask); 120 m_rendering_picture->setWindow(m_rendering_window, pa, pa_mask);
121 121
122 // Create the back buffer. 122 // Create the back buffer.
123 XRenderPictFormat *back_buffer_pict_format = XRenderFindStandardFormat(display(), PictStandardARGB32); 123 XRenderPictFormat *back_buffer_pict_format = XRenderFindStandardFormat(display(), PictStandardARGB32);
124 Pixmap back_buffer_pixmap = XCreatePixmap(display(), rootWindow().window(), rootWindow().width(), rootWindow().height(), 32); 124 Pixmap back_buffer_pixmap = XCreatePixmap(display(), rootWindow().window(), rootWindow().width(), rootWindow().height(), 32);
125 125
126 m_back_buffer_picture = new XRenderPicture(*this, back_buffer_pict_format, m_pict_filter); 126 m_back_buffer_picture.reset(
127 new XRenderPicture(*this, back_buffer_pict_format, m_pict_filter));
127 m_back_buffer_picture->setPixmap(back_buffer_pixmap, true, pa, pa_mask); 128 m_back_buffer_picture->setPixmap(back_buffer_pixmap, true, pa, pa_mask);
128} 129}
129 130
@@ -171,7 +172,7 @@ void XRenderScreen::updateBackgroundPicture() {
171 long pa_mask = CPSubwindowMode; 172 long pa_mask = CPSubwindowMode;
172 173
173 if (!m_root_picture) { 174 if (!m_root_picture) {
174 m_root_picture = new XRenderPicture(*this, pict_format, m_pict_filter); 175 m_root_picture.reset( new XRenderPicture(*this, pict_format, m_pict_filter) );
175 } else { 176 } else {
176 m_root_picture->setPictFormat(pict_format); 177 m_root_picture->setPictFormat(pict_format);
177 } 178 }