From ebe19912e64a40bea8caf4ca49f3c5502bb47eb7 Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Thu, 30 May 2019 23:40:43 -0700 Subject: [PATCH] scale area map too --- README.md | 1 - wrp.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a030bca..2344fda 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ A HTTP proxy server that allows to use historical and obsolete web browsers on t * resolve relative links ## Todo -* configurable size and scale * ISMAP * unexpected EOF on Windows * configurable color palete and quantization diff --git a/wrp.go b/wrp.go index aaf31c3..550a728 100644 --- a/wrp.go +++ b/wrp.go @@ -143,7 +143,7 @@ func capture(gourl string, w int64, h int64, s float64, out http.ResponseWriter) if len(b.Content) > 6 && len(target) > 7 { fmt.Fprintf(out, "\"%s\"\n", - b.Content[0], b.Content[1], b.Content[4], b.Content[5], n.AttributeValue("href"), n.AttributeValue("href"), target) + b.Content[0]*s, b.Content[1]*s, b.Content[4]*s, b.Content[5]*s, n.AttributeValue("href"), n.AttributeValue("href"), target) } } @@ -163,6 +163,6 @@ func main() { http.HandleFunc("/img/", imgServer) http.HandleFunc("/favicon.ico", http.NotFound) http.HandleFunc("/halt", haltServer) - log.Printf("Starting http server on %s\n", addr) + log.Printf("Starting WRP http server on %s\n", addr) http.ListenAndServe(addr, nil) }