Skip to content

Commit 5ada639

Browse files
committed
text edit cursor need not compensate fontMarginY (u8g2)
because they are full height
1 parent 12a9f3a commit 5ada639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/menuIO/u8g2Out.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace Menu {
107107
if (charEdit) {
108108
// rect(panelNr, x-1, y, 1, 1, bgColor, false, enabledStatus, false);
109109
const panel p=panels[panelNr];
110-
gfx.drawBox((p.x+x)*resX + offsetX +fontMarginX,(p.y+y)*resY+ offsetY -fontMarginY,resX,resY);
110+
gfx.drawBox((p.x+x)*resX + offsetX +fontMarginX,(p.y+y)*resY+ offsetY /*-fontMarginY*/,resX,resY);
111111
setColor(fgColor,false,enabledStatus,false);
112112
}/* else
113113
box(panelNr, x, y, 1, 1, bgColor, false, enabledStatus, false);*/
@@ -123,7 +123,7 @@ namespace Menu {
123123
_trace(Serial<<"editCursor"<<endl);
124124
// box(panelNr,x-1,y);
125125
const panel p=panels[panelNr];
126-
gfx.drawFrame((x+p.x-1)*resX + offsetX + fontMarginX-1,(p.y+y)*resY + offsetY - fontMarginY+2,resX+1 ,resY);
126+
gfx.drawFrame((x+p.x-1)*resX + offsetX + fontMarginX-1,(p.y+y)*resY + offsetY /*- fontMarginY+2*/,resX+1 ,resY);
127127
}
128128
return 0;
129129
}

0 commit comments

Comments
 (0)