summaryrefslogtreecommitdiffstats
path: root/redhat/tdelibs/kdelibs-3.5.13-fix_slide_drawing.patch
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2013-06-24 19:50:32 +0200
committerFrançois Andriot <[email protected]>2013-06-24 19:50:32 +0200
commitb4359e8bf97799f83dc1ca62744db7cfcc81bc87 (patch)
tree3346872613490cc467c19e1645d0026c1221bce7 /redhat/tdelibs/kdelibs-3.5.13-fix_slide_drawing.patch
parent4cc71d79c5718d59078d06c497a56d7c05b41576 (diff)
downloadtde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.tar.gz
tde-packaging-b4359e8bf97799f83dc1ca62744db7cfcc81bc87.zip
RPM Packaging: rename directories
Diffstat (limited to 'redhat/tdelibs/kdelibs-3.5.13-fix_slide_drawing.patch')
-rw-r--r--redhat/tdelibs/kdelibs-3.5.13-fix_slide_drawing.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/redhat/tdelibs/kdelibs-3.5.13-fix_slide_drawing.patch b/redhat/tdelibs/kdelibs-3.5.13-fix_slide_drawing.patch
new file mode 100644
index 000000000..e5b499167
--- /dev/null
+++ b/redhat/tdelibs/kdelibs-3.5.13-fix_slide_drawing.patch
@@ -0,0 +1,52 @@
+commit a1c30c142a7b631d6ff66f12d8b48c9aec07190f
+Author: Timothy Pearson <[email protected]>
+Date: 1331881108 -0500
+
+ Fix slider drawing on external paint devices
+
+diff --git a/tdefx/kstyle.cpp b/tdefx/kstyle.cpp
+index d4cb9bd..0220840 100644
+--- a/kdefx/kstyle.cpp
++++ b/kdefx/kstyle.cpp
+@@ -1138,11 +1138,14 @@ void KStyle::drawComplexControl( TQ_ComplexControl control,
+ last = querySubControlMetrics(control, widget, SC_ScrollBarLast, opt);
+ subline2 = addline;
+
+- if ( useThreeButtonScrollBar )
+- if (horizontal)
++ if ( useThreeButtonScrollBar ) {
++ if (horizontal) {
+ subline2.moveBy(-addline.width(), 0);
+- else
++ }
++ else {
+ subline2.moveBy(0, -addline.height());
++ }
++ }
+
+ // Draw the up/left button set
+ if ((controls & SC_ScrollBarSubLine) && subline.isValid()) {
+@@ -1238,7 +1241,14 @@ void KStyle::drawComplexControl( TQ_ComplexControl control,
+ }
+
+ p2.end();
+- bitBlt((TQWidget*)widget, r.x(), r.y(), &pix);
++
++ TQPaintDevice* ppd = p->device();
++ if (ppd->isExtDev()) {
++ p->drawPixmap(0, 0, pix);
++ }
++ else {
++ bitBlt((TQWidget*)widget, r.x(), r.y(), &pix);
++ }
+ break;
+ }
+
+@@ -2105,7 +2115,6 @@ TQImage TransparencyHandler::handleRealAlpha(TQImage img) {
+ for (int y = 0; y < h; ++y) {
+ TQRgb *ls = (TQRgb *)clearImage.scanLine( y );
+ for (int x = 0; x < w; ++x) {
+- TQRgb l = ls[x];
+ ls[x] = tqRgba( 0, 0, 0, 0 );
+ }
+ }