aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/mud
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2007-11-21 22:31:46 +0000
committerKenny Root <kenny@the-b.org>2007-11-21 22:31:46 +0000
commit1c4ff63a55947db1cd730fb40856185e22bb47c6 (patch)
treeb01e0369ed3804d923b3228b075547d3e483855a /src/de/mud
parentd6764b7763e7857273b65048b4eb37a3c65efade (diff)
downloadconnectbot-1c4ff63a55947db1cd730fb40856185e22bb47c6.tar.gz
connectbot-1c4ff63a55947db1cd730fb40856185e22bb47c6.tar.bz2
connectbot-1c4ff63a55947db1cd730fb40856185e22bb47c6.zip
Added preferences, touch entropy, fixes to SoftFont.
Diffstat (limited to 'src/de/mud')
-rw-r--r--src/de/mud/terminal/SoftFont.java5
-rw-r--r--src/de/mud/terminal/VDUBuffer.java8
2 files changed, 10 insertions, 3 deletions
diff --git a/src/de/mud/terminal/SoftFont.java b/src/de/mud/terminal/SoftFont.java
index 5f13f28..bd25a60 100644
--- a/src/de/mud/terminal/SoftFont.java
+++ b/src/de/mud/terminal/SoftFont.java
@@ -1104,15 +1104,14 @@ public class SoftFont {
switch (fontdata[entry][SF_TYPE]) {
case SF_BITMAP:
+ p.setStrokeWidth(0);
for (h=0;h<fontheight;h++) {
for (w=0;w<fontwidth;w++) {
//FIXME: 8 bit max currently...
if (0!=(fontdata[entry][h+SF_DATA] & (1<<(7-w)))) {
- g.drawRect(
+ g.drawPoint(
x+(int)(w*dw),
y+(int)(h*dh),
- ((int)((w+1)*dw))-(int)(w*dw),
- ((int)((h+1)*dh))-(int)(h*dh),
p
);
}
diff --git a/src/de/mud/terminal/VDUBuffer.java b/src/de/mud/terminal/VDUBuffer.java
index 7f203e6..a4f8244 100644
--- a/src/de/mud/terminal/VDUBuffer.java
+++ b/src/de/mud/terminal/VDUBuffer.java
@@ -548,6 +548,14 @@ public class VDUBuffer {
}
/**
+ * Check whether the cursor is currently visible.
+ * @return visibility
+ */
+ public boolean isCursorVisible() {
+ return showcursor;
+ }
+
+ /**
* Puts the cursor at the specified position.
* @param c column
* @param l line