From ba20a11e98914949982f21a111cc58fced2951c2 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 19 Jan 2010 19:12:28 +0000 Subject: [PATCH] - drop bitmap_font_speed patch, rejected upstream --- konsole-nvidia-font-speed.diff | 38 ---------------------------------- qt.spec | 8 +++---- 2 files changed, 4 insertions(+), 42 deletions(-) delete mode 100644 konsole-nvidia-font-speed.diff diff --git a/konsole-nvidia-font-speed.diff b/konsole-nvidia-font-speed.diff deleted file mode 100644 index 8d22c0b..0000000 --- a/konsole-nvidia-font-speed.diff +++ /dev/null @@ -1,38 +0,0 @@ ---- src/gui/painting/qpaintengine_x11.cpp.sav 2009-12-05 11:34:37.000000000 +0100 -+++ src/gui/painting/qpaintengine_x11.cpp 2010-01-03 22:20:14.300572192 +0100 -@@ -2297,6 +2297,7 @@ static QPainterPath path_for_glyphs(cons - path.setFillRule(Qt::WindingFill); - ft->lockFace(); - int i = 0; -+ const QFixed offs = QFixed::fromReal(aliasedCoordinateDelta); - while (i < glyphs.size()) { - QFontEngineFT::Glyph *glyph = ft->loadGlyph(glyphs[i], QFontEngineFT::Format_Mono); - // #### fix case where we don't get a glyph -@@ -2306,15 +2307,15 @@ static QPainterPath path_for_glyphs(cons - Q_ASSERT(glyph->format == QFontEngineFT::Format_Mono); - int n = 0; - int h = glyph->height; -- int xp = qRound(positions[i].x); -- int yp = qRound(positions[i].y); -+ int xp = qRound(positions[i].x + offs); -+ int yp = qRound(positions[i].y + offs); - - xp += glyph->x; - yp += -glyph->y + glyph->height; - int pitch = ((glyph->width + 31) & ~31) >> 3; - - uchar *src = glyph->data; -- while (h--) { -+ for (;h > 0;h--) { - for (int x = 0; x < glyph->width; ++x) { - bool set = src[x >> 3] & (0x80 >> (x & 7)); - if (set) { -@@ -2349,7 +2350,7 @@ void QX11PaintEngine::drawFreetype(const - return; - } - -- const bool xrenderPath = (X11->use_xrender -+ const bool xrenderPath = (X11->use_xrender && !ft->isBitmapFont() - && !(d->pdev->devType() == QInternal::Pixmap - && static_cast(d->pdev)->data->pixelType() == QPixmapData::BitmapType)); - diff --git a/qt.spec b/qt.spec index 8825838..0823e2e 100644 --- a/qt.spec +++ b/qt.spec @@ -13,7 +13,7 @@ Summary: Qt toolkit Name: qt Epoch: 1 Version: 4.6.1 -Release: 1%{?dist} +Release: 2%{?dist} # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details License: LGPLv2 with exceptions or GPLv3 with exceptions @@ -57,8 +57,6 @@ Patch53: qt-x11-opensource-src-4.5.0-fix-qatomic-inline-asm.patch # fix invalid assumptions about mysql_config --libs # http://bugzilla.redhat.com/440673 Patch54: qt-x11-opensource-src-4.5.1-mysql_config.patch -# http://bugreports.qt.nokia.com/browse/QTBUG-7255 -Patch55: http://bugreports.qt.nokia.com/secure/attachment/12488/konsole-nvidia-font-speed.diff # security patches @@ -405,7 +403,6 @@ Qt libraries used for drawing widgets and OpenGL items. %patch53 -p1 -b .qatomic-inline-asm ## TODO: upstream me %patch54 -p1 -b .mysql_config -%patch55 -p0 -b .bitmap_font_speed # security fixes @@ -1005,6 +1002,9 @@ fi %changelog +* Tue Jan 19 2010 Rex Dieter - 4.6.1-2 +- drop bitmap_font_speed patch, rejected upstream + * Tue Jan 19 2010 Than Ngo - 4.6.1-1 - 4.6.1