repo: janusweb
action: commit
revision: 
path_from: 
revision_from: b4baaebb9c20f980a6fa986de2801383a7f47d48:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit b4baaebb9c20f980a6fa986de2801383a7f47d48
Author: James Baicoianu 
Date:   Sun Oct 31 02:02:09 2021 -0700

    Increase default  texture size to 1024x1024

diff --git a/scripts/janusparagraph.js b/scripts/janusparagraph.js
index adb7b6ca31a708e726d9ea7da1f3d2635371bcda..
index ..7f999f76c4eb330751a0703319c6ec72dbd94114 100644
--- a/scripts/janusparagraph.js
+++ b/scripts/janusparagraph.js
@@ -66,15 +66,15 @@ elation.require(['janusweb.janusbase'], function() {
       if (!this.canvas || !this.texture) return;
       var ctx = this.canvas.getContext('2d'),
           texture = this.texture;
-      this.canvas.width = 512;
-      this.canvas.height = 512;
+      this.canvas.width = 1024;
+      this.canvas.height = 1024;
       var text_col = '#' + this.text_col.getHexString(),
           back_col = 'rgba(' + (this.back_col.r * 255) + ', ' + (this.back_col.g * 255) + ', ' + (this.back_col.b * 255) + ', ' + this.back_alpha + ')';
       var basestyle = 'font-family: sans-serif;' +
                       'font-size: ' + this.font_size + 'px;' +
                       'color: ' + text_col + ';' +
                       'background: ' + back_col + ';' +
-                      'max-width: 502px;' +
+                      'max-width: 1014px;' +
                       'padding: 5px;';

       // We need to sanitize our HTML in case someone provides us with malformed markup.

-----END OF PAGE-----