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=dae88237d66fd49588cc27136c59376c443f9e9f;hp=70066828af1167e35506bf1f765c97d0f56eca36;hpb=13a06349251874bd35d2f03c3fc93217cee749a2;p=evince.git diff --git a/backend/dvi/mdvi-lib/common.c b/backend/dvi/mdvi-lib/common.c index 70066828..97b34b56 100644 --- a/backend/dvi/mdvi-lib/common.c +++ b/backend/dvi/mdvi-lib/common.c @@ -13,16 +13,15 @@ * * 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 #include #include #include "common.h" -static Int32 scaled_width(Int32 fix, int scale); - long fsgetn(FILE *p, size_t n) { long v; @@ -116,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)