Skip to content

Commit 6ec25ca

Browse files
committed
fix text bugs
1 parent c8cee65 commit 6ec25ca

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

AndroidIDE/Highlight.pde

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ static class SyntaxHighlight {
7373
}
7474
if (sel == pos) {
7575
g.stroke(th.pair);
76+
g.strokeWeight(ceil(sz/20f));
7677
g.pushMatrix();
7778
g.translate(cx, y + ln*sz);
7879
g.beginShape();

AndroidIDE/Textfield.pde

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class APLField extends Drawable implements TextReciever {
4242
}
4343
clip(x, y, w, h);
4444
if (pmousePressed && !mousePressed && smouseIn() && dist(mouseX, mouseY, smouseX, smouseY) < 10) {
45+
textSize(tsz);
4546
sx = constrain(round((mouseX-x)/textWidth("H")), 0, line.length());
4647
ex = sx;
4748
tt = 0;

0 commit comments

Comments
 (0)