Skip to content

Commit

Permalink
double meh
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Feb 18, 2022
1 parent 35d3c89 commit ae2663f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/board_drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function new_board_drawer(backgrounddiv, htmltable, canvas, infodiv) {
// just have functions in this module (instead of methods in the object) but meh.

let drawer = Object.create(board_drawer_prototype);
drawer.fix_infodiv_font();

drawer.backgrounddiv = backgrounddiv;
drawer.htmltable = htmltable;
Expand All @@ -66,6 +65,7 @@ function new_board_drawer(backgrounddiv, htmltable, canvas, infodiv) {
// By contrast, this stores only things waiting to be drawn to the canvas:
drawer.needed_marks = new_2d_array(25, 25, null); // Objects representing stuff.

drawer.fix_infodiv_font();
return drawer;
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/comment_drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const {replace_all} = require("./utils");

function new_comment_drawer(div) {
let drawer = Object.create(comment_drawer_prototype);
drawer.fix_font();
drawer.div = div;
drawer.fix_font();
return drawer;
}

Expand Down

0 comments on commit ae2663f

Please sign in to comment.