]> www.fi.muni.cz Git - evince.git/blobdiff - backend/dvi/mdvi-lib/common.c
a11: using ATK_ROLE_DOCUMENT_FRAME it's more correct
[evince.git] / backend / dvi / mdvi-lib / common.c
index 70066828af1167e35506bf1f765c97d0f56eca36..97b34b56c4a187eec3fbce7d0c6b5dd1870dee9c 100644 (file)
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  *
  * 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 <config.h>
 #include <stdlib.h>
 #include <string.h>
 
 #include "common.h"
 
 #include <stdlib.h>
 #include <string.h>
 
 #include "common.h"
 
-static Int32   scaled_width(Int32 fix, int scale);
-
 long   fsgetn(FILE *p, size_t n)
 {
        long    v;
 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;
 }
 
        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)
 /* buffers */
 
 void   buff_free(Buffer *buf)