Skip to content

Commit

Permalink
add manifest_commodetto.json #1216
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Sep 23, 2023
1 parent 446968a commit 5f1179c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/data/qrcode/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2021 Moddable Tech, Inc.
* Copyright (c) 2018-2023 Moddable Tech, Inc.
*
* This file is part of the Moddable SDK.
*
Expand All @@ -23,7 +23,7 @@ let render = new Poco(screen);

let margin = 10;
let available = Math.min(render.width - (margin * 2), render.height - (margin * 2));
let pixels = Math.floor(available / size);
let pixels = Math.idiv(available, size);
margin += (available - (pixels * size)) >> 1;

render.begin();
Expand Down
1 change: 1 addition & 0 deletions examples/data/qrcode/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"include": [
"$(MODDABLE)/examples/manifest_base.json",
"$(MODDABLE)/examples/manifest_commodetto.json",
"$(MODDABLE)/modules/commodetto/qrcode/manifest.json",
"$(MODDABLE)/modules/data/qrcode/manifest.json"
],
Expand Down

0 comments on commit 5f1179c

Please sign in to comment.