[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kdvi
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2005-01-16 10:20:41
Message-ID: 20050116102041.B2F2E1BBE0 () office ! kde ! org
[Download RAW message or body]
CVS commit by whuss:
Hyperlink underlining is now done by the ViewShell.
M +0 -12 dviwin_draw.cpp 1.76
--- kdegraphics/kdvi/dviwin_draw.cpp #1.75:1.76
@@ -631,15 +631,3 @@ void dviRenderer::draw_page(void)
source_href = 0;
}
-
- // Mark hyperlinks in blue. We draw a blue line under the
- // character whose width is equivalent to 0.5 mm, but at least
- // one pixel.
- int h = (int)(MFResolutions[font_pool.getMetafontMode()]*0.05/(2.54*shrinkfactor) + 0.5);
- h = (h < 1) ? 1 : h;
- for(unsigned int i=0; i<currentlyDrawnPage->hyperLinkList.size(); i++) {
- int x = currentlyDrawnPage->hyperLinkList[i].box.left();
- int w = currentlyDrawnPage->hyperLinkList[i].box.width();
- int y = currentlyDrawnPage->hyperLinkList[i].baseline;
- foreGroundPaint.fillRect(x, y, w, h, Qt::blue);
- }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic