From 62db84890942adc918c5550d98448951e6e78942 Mon Sep 17 00:00:00 2001
From: kramm <kramm>
Date: Thu, 1 Nov 2001 01:15:23 +0000
Subject: [PATCH] cleared up.

---
 pdf2swf/SWFOutputDev.cc |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc
index bffb3b5..122e000 100644
--- a/pdf2swf/SWFOutputDev.cc
+++ b/pdf2swf/SWFOutputDev.cc
@@ -235,6 +235,8 @@ public:
   int t1id;
   int jpeginfo; // did we write "Page contains jpegs" yet?
   int pbminfo; // did we write "Page contains jpegs" yet?
+
+  GfxState *laststate;
 };
 
 char mybuf[1024];
@@ -619,6 +621,7 @@ void SWFOutputDev::endString(GfxState *state)
 void SWFOutputDev::startPage(int pageNum, GfxState *state) 
 {
   double x1,y1,x2,y2;
+  laststate = state;
   logf("<debug> startPage %d\n", pageNum);
   logf("<notice> processing page %d", pageNum);
 
@@ -645,16 +648,16 @@ void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
     rgb.r = 0;
     rgb.g = 0;
     rgb.b = 1;
-    cvtu2d(this, x1, y1, &x, &y);
+    cvtUserToDev(x1, y1, &x, &y);
     points[0].x = points[4].x = (int)x;
     points[0].y = points[4].y = (int)y;
-    cvtu2d(this, x2, y1, &x, &y);
+    cvtUserToDev(x2, y1, &x, &y);
     points[1].x = (int)x;
     points[1].y = (int)y;
-    cvtu2d(this, x2, y2, &x, &y);
+    cvtUserToDev(x2, y2, &x, &y);
     points[2].x = (int)x;
     points[2].y = (int)y;
-    cvtu2d(this, x1, y2, &x, &y);
+    cvtUserToDev(x1, y2, &x, &y);
     points[3].x = (int)x;
     points[3].y = (int)y;
 
@@ -759,7 +762,7 @@ void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
     {
 	swfoutput_linktourl(&output, url, points);
     }
-    logf("<notice> \"%s\" link to \"%s\" (%d)\n", type, s, page);
+    logf("<verbose> \"%s\" link to \"%s\" (%d)\n", type, s, page);
   }
 }
 
-- 
1.7.10.4