diff options
author | Timothy Pearson <[email protected]> | 2012-03-02 02:13:02 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-03-02 02:13:02 -0600 |
commit | 8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96 (patch) | |
tree | bf71d4bfa94d0561e80456400ae5fe2bb501fbd8 /kdesktop/bgmanager.cc | |
parent | e8a1cdc01d38125bea12d5494db977ae6429919a (diff) | |
download | tdebase-8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96.tar.gz tdebase-8bd291c0e8a9d8b6eec6f5217e4d5c2f1fd06b96.zip |
Rename additional global functions and variables for tqt3
Diffstat (limited to 'kdesktop/bgmanager.cc')
-rw-r--r-- | kdesktop/bgmanager.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kdesktop/bgmanager.cc b/kdesktop/bgmanager.cc index 341cc5b88..b36219692 100644 --- a/kdesktop/bgmanager.cc +++ b/kdesktop/bgmanager.cc @@ -64,7 +64,7 @@ KBackgroundManager::KBackgroundManager(TQWidget *desktop, KWinModule* twinModule { if( !properties_inited ) { - prop_root = XInternAtom(qt_xdisplay(), "_XROOTPMAP_ID", False); + prop_root = XInternAtom(tqt_xdisplay(), "_XROOTPMAP_ID", False); properties_inited = true; } m_bBgInitDone = false; @@ -146,7 +146,7 @@ KBackgroundManager::~KBackgroundManager() int format; unsigned long length, after; unsigned char* data_root; - if( XGetWindowProperty( qt_xdisplay(), qt_xrootwin(), prop_root, 0L, 1L, False, AnyPropertyType, + if( XGetWindowProperty( tqt_xdisplay(), tqt_xrootwin(), prop_root, 0L, 1L, False, AnyPropertyType, &type, &format, &length, &after, &data_root) == Success && data_root != NULL ) { if (type == XA_PIXMAP) @@ -155,7 +155,7 @@ KBackgroundManager::~KBackgroundManager() } // only if it's our pixmap if( pm == m_xrootpmap ) - XDeleteProperty(qt_xdisplay(), qt_xrootwin(), prop_root); + XDeleteProperty(tqt_xdisplay(), tqt_xrootwin(), prop_root); m_xrootpmap = None; if (m_bExport) @@ -488,7 +488,7 @@ void KBackgroundManager::setPixmap(KPixmap *pm, int hash, int desk) && !myApp->cmBackground()) { XRenderPictFormat *format; - format = XRenderFindStandardFormat (qt_xdisplay(), PictStandardARGB32); + format = XRenderFindStandardFormat (tqt_xdisplay(), PictStandardARGB32); XRenderColor fillColor; @@ -498,18 +498,18 @@ void KBackgroundManager::setPixmap(KPixmap *pm, int hash, int desk) fillColor.blue = color; fillColor.alpha = color; - Picture fill = XRenderCreateSolidFill (qt_xdisplay(), &fillColor); - Picture src = XRenderCreatePicture(qt_xdisplay(), pm->handle(), + Picture fill = XRenderCreateSolidFill (tqt_xdisplay(), &fillColor); + Picture src = XRenderCreatePicture(tqt_xdisplay(), pm->handle(), format, 0, NULL); - Picture dst = XRenderCreatePicture(qt_xdisplay(), ep->handle(), + Picture dst = XRenderCreatePicture(tqt_xdisplay(), ep->handle(), format, 0, NULL); - XRenderComposite (qt_xdisplay(), PictOpSrc, src, fill, dst, 0, 0, 0, + XRenderComposite (tqt_xdisplay(), PictOpSrc, src, fill, dst, 0, 0, 0, 0, 0, 0, pm->width(), pm->height()); - XRenderFreePicture (qt_xdisplay(), fill); - XRenderFreePicture (qt_xdisplay(), src); - XRenderFreePicture (qt_xdisplay(), dst); + XRenderFreePicture (tqt_xdisplay(), fill); + XRenderFreePicture (tqt_xdisplay(), src); + XRenderFreePicture (tqt_xdisplay(), dst); } } #endif @@ -546,7 +546,7 @@ void KBackgroundManager::setPixmap(KPixmap *pm, int hash, int desk) // don't set the ESETROOT_PMAP_ID property - that would result in possible XKillClient() // done on kdesktop - XChangeProperty(qt_xdisplay(), qt_xrootwin(), prop_root, XA_PIXMAP, 32, PropModeReplace, + XChangeProperty(tqt_xdisplay(), tqt_xrootwin(), prop_root, XA_PIXMAP, 32, PropModeReplace, (unsigned char *) &bgPm, 1); m_xrootpmap = bgPm; |