X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fdvi%2Fmdvi-lib%2Fcommon.c;h=97b34b56c4a187eec3fbce7d0c6b5dd1870dee9c;hb=e769474337c9a6ffdaed2327056e8de2f7ca9ee4;hp=2382dd5f43b65f05163acf00de57db831b4f429f;hpb=1af6600934d1f723e5b492b8322e52a1144fb0af;p=evince.git diff --git a/backend/dvi/mdvi-lib/common.c b/backend/dvi/mdvi-lib/common.c index 2382dd5f..97b34b56 100644 --- a/backend/dvi/mdvi-lib/common.c +++ b/backend/dvi/mdvi-lib/common.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include @@ -22,8 +22,6 @@ #include "common.h" -static Int32 scaled_width(Int32 fix, int scale); - long fsgetn(FILE *p, size_t n) { long v; @@ -117,24 +115,6 @@ char *read_alloc_bcpl(FILE *in, size_t maxlen, size_t *size) return buffer; } -/* stolen from dvips */ -static Int32 scaled_width(Int32 fix, int scale) -{ - Int32 al, bl; - - if(fix < 0) - return -scaled_width(-fix, scale); - if(scale < 0) - return -scaled_width(fix, -scale); - al = fix & 32767; - bl = scale & 32767; - al >>= 15; - bl >>= 15; - - return (((al*bl / 32768) + fix*bl + al*scale) / 32 + - fix * scale / 1024); -} - /* buffers */ void buff_free(Buffer *buf)