From bf4f5657e714f345a38ec204888291199fc31d77 Mon Sep 17 00:00:00 2001 From: Xavier <xavier@c-est-simple.com> Date: Sun, 22 Oct 2017 08:59:42 +0200 Subject: [PATCH] Fixed up shifting but on bottom right pixels --- resources/glyphEditor.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/glyphEditor.html b/resources/glyphEditor.html index f612aef..e6742ab 100644 --- a/resources/glyphEditor.html +++ b/resources/glyphEditor.html @@ -57,6 +57,9 @@ SOFTWARE. #chars th[action] { cursor:pointer; } + #chars th[action="up"], #chars th[action="down"], #chars th[action="left"], #chars th[action="right"] { + font-size: 10px; + } #chars td.on { background-color: #CCC; } @@ -400,12 +403,13 @@ const char My_Font[] PROGMEM = { case 'up': pixels = currentContainer.getElementsByTagName('td'); for(p = 0; p < pixels.length; p++) { - if(p < (font.width - 1)*font.height) { + if(p < font.width*(font.height -1)) { pixels[p].className = pixels[p + font.width].className; } else { pixels[p].className = ''; } - } break; + } + break; case 'toggle': Font.togglePixel(target); -- GitLab