simon-git: puzzles (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Nov 27 20:11:00 GMT 2022


TL;DR:
  115edab js: Remove alpha channel from almost all our canvases
  19540d2 js: Hide menus and resize handle when printing
  c6e312b js: Remove "width" and "height" attributes from HTML <canvas>
  4be221b Update current-as-of commit ID in developer docs

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Ben Harris <bjh21 at bjh21.me.uk>
Date:           2022-11-27 20:11:00

commit 115edab4597ba526f9afaa659e4c968db026658f
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=115edab4597ba526f9afaa659e4c968db026658f;hp=a6a799720f53d52721284c201e2dfc81610c2e40
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Fri Nov 25 19:13:43 2022 +0000

    js: Remove alpha channel from almost all our canvases
    
    Specifying the { alpha: false } option when creating a rendering context
    tells the browser that we won't use transparency, and the standard
    puzzle canvases, along with blitters, are all opaque.  No obvious
    effect, but the MDN suggests that this should reduce CPU usage.
    
    The one exception here is the resize handle, which actually is
    transparent.

 emcclib.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

commit 19540d2ef81e2640e511ff5212b545f8225f5eaa
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=19540d2ef81e2640e511ff5212b545f8225f5eaa;hp=115edab4597ba526f9afaa659e4c968db026658f
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Sat Nov 26 08:55:36 2022 +0000

    js: Hide menus and resize handle when printing

 html/jspage.pl | 5 +++++
 1 file changed, 5 insertions(+)

commit c6e312b252bc41eac10dff60f1c6675c762b4cee
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=c6e312b252bc41eac10dff60f1c6675c762b4cee;hp=19540d2ef81e2640e511ff5212b545f8225f5eaa
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Sat Nov 26 00:04:58 2022 +0000

    js: Remove "width" and "height" attributes from HTML <canvas>
    
    They were set to "1px", which isn't a valid value since they're meant to
    be integers.  Since they weren't valid, they were ignored.  This doesn't
    seem to have caused any trouble, so they may as well be removed.  In any
    case, the canvas is invisible until after its size has been set by
    JavaScript.

 html/jspage.pl | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

commit 4be221ba4917d00a15d115b7f85557b6ab6fa4d0
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=4be221ba4917d00a15d115b7f85557b6ab6fa4d0;hp=c6e312b252bc41eac10dff60f1c6675c762b4cee
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Sun Nov 27 19:52:47 2022 +0000

    Update current-as-of commit ID in developer docs
    
    I think I've made all the updates necessary already.

 devel.but | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the tartarus-commits mailing list