From c720e7ff046ebeebd6abb7df8d5c6c41c41519c9 Mon Sep 17 00:00:00 2001 From: Martin Zwigl Date: Sun, 11 Aug 2024 19:09:20 +0200 Subject: [PATCH] :bug: use proper size for g2 --- apps/slopeclockbig/ChangeLog | 1 + apps/slopeclockbig/app.js | 8 ++------ apps/slopeclockbig/metadata.json | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/slopeclockbig/ChangeLog b/apps/slopeclockbig/ChangeLog index e1de62d23..2faf14c57 100644 --- a/apps/slopeclockbig/ChangeLog +++ b/apps/slopeclockbig/ChangeLog @@ -4,3 +4,4 @@ 0.30: Fix size of animation and drawing slope to left upper 0.40: Try with halving the other scalars 0.41: Use different font for clock +0.42: Minor fix; use proper amount of g2 diff --git a/apps/slopeclockbig/app.js b/apps/slopeclockbig/app.js index 1f4807e4f..e2e7fc36c 100644 --- a/apps/slopeclockbig/app.js +++ b/apps/slopeclockbig/app.js @@ -25,13 +25,9 @@ let drawTimeout; //let g2 = Graphics.createArrayBuffer(g.getWidth(),90,1,{msb:true}); let g2 = Graphics.createArrayBuffer(g.getWidth() / 2,g.getHeight() / 2,1,{msb:true}); -// let g2img = { -// width:g2.getWidth(), height:g2.getHeight(), bpp:1, -// buffer:g2.buffer, transparent:0 -// }; let g2img = { - width:g2.getWidth() / 2, height:g2.getHeight() / 2, bpp:1, - buffer:g2.buffer, transparent:0 + width:g2.getWidth(), height:g2.getHeight(), bpp:1, + buffer:g2.buffer, transparent:0 }; const slope = 10; const offsY = 10; // offset of numbers from middle diff --git a/apps/slopeclockbig/metadata.json b/apps/slopeclockbig/metadata.json index c94688c9b..ecc8d4bcc 100644 --- a/apps/slopeclockbig/metadata.json +++ b/apps/slopeclockbig/metadata.json @@ -1,6 +1,6 @@ { "id": "slopeclockbig", "name": "Slope Clock BIG", - "version":"0.41", + "version":"0.42", "description": "A clock where hours and minutes are divided by a sloping line. When the minute changes, the numbers slide off the screen. This is a clone of the original Slope Clock which shows extra information and allows the colors to be selected.", "icon": "app.png", "screenshots": [{"url":"screenshot.png"}],