[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kdvi
From: Stefan Kebekus <stefan.kebekus () uni-bayreuth ! de>
Date: 2005-03-18 12:02:24
Message-ID: 20050318120224.0563A16DE8 () office ! kde ! org
[Download RAW message or body]
CVS commit by kebekus:
fixes TPIC problem found by Robert Cabane
M +4 -2 special.cpp 1.67
--- kdegraphics/kdvi/special.cpp #1.66:1.67
@@ -388,6 +388,8 @@ void dviRenderer::TPIC_addPath_special(Q
}
- int x = (int)( currinf.data.dvi_h/(shrinkfactor*65536.0) + xKoord*resolutionInDPI/1000.0 + 0.5 );
- int y = (int)( currinf.data.pxl_v + yKoord*resolutionInDPI/1000.0 + 0.5 );
+ float mag = dviFile->getMagnification()/1000.0;
+
+ int x = (int)( currinf.data.dvi_h/(shrinkfactor*65536.0) + mag*xKoord*resolutionInDPI/1000.0 + 0.5 );
+ int y = (int)( currinf.data.pxl_v + mag*yKoord*resolutionInDPI/1000.0 + 0.5 );
// Initialize the point array used to store the path
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic