Skip to content
Snippets Groups Projects
Commit bf4f5657 authored by Xavier's avatar Xavier
Browse files

Fixed up shifting but on bottom right pixels

parent 4a5cda63
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,9 @@ SOFTWARE. ...@@ -57,6 +57,9 @@ SOFTWARE.
#chars th[action] { #chars th[action] {
cursor:pointer; cursor:pointer;
} }
#chars th[action="up"], #chars th[action="down"], #chars th[action="left"], #chars th[action="right"] {
font-size: 10px;
}
#chars td.on { #chars td.on {
background-color: #CCC; background-color: #CCC;
} }
...@@ -400,12 +403,13 @@ const char My_Font[] PROGMEM = { ...@@ -400,12 +403,13 @@ const char My_Font[] PROGMEM = {
case 'up': case 'up':
pixels = currentContainer.getElementsByTagName('td'); pixels = currentContainer.getElementsByTagName('td');
for(p = 0; p < pixels.length; p++) { 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; pixels[p].className = pixels[p + font.width].className;
} else { } else {
pixels[p].className = ''; pixels[p].className = '';
} }
} break; }
break;
case 'toggle': case 'toggle':
Font.togglePixel(target); Font.togglePixel(target);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment