Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 241271 Details for
Bug 331071
[PATCH] x11-libs/qt-gui-4.6.3: Slow font rendering in Konsole on nvidia + related off-by-one error
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch from upstream bug
konsole-nvidia-font-speed.diff (text/plain), 1.64 KB, created by
wbrana
on 2010-08-03 16:43:40 UTC
(
hide
)
Description:
patch from upstream bug
Filename:
MIME Type:
Creator:
wbrana
Created:
2010-08-03 16:43:40 UTC
Size:
1.64 KB
patch
obsolete
>--- 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<const QPixmap *>(d->pdev)->data->pixelType() == QPixmapData::BitmapType)); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 331071
: 241271