Fix a single dot appearing on line 5 of the D screen. The screen moves

strings err1 and err2 off-screen to (30,5). In LCDd, render_string
moved the string to (width,5). On displays with less than 5 line the dot
was not drawn, but on those with 5 or more lines. Moving the start of string
to (0,0) makes render_string ignoring it completely.
This commit is contained in:
mmdolze
2011-01-24 19:45:28 +00:00
parent b0a8da6079
commit 224eca976a
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -14,6 +14,7 @@ v.0.5dev (ongoing development)
+ Add an option to start LCDd with screen rotation disabled (M. Zanetti)
* Rewrite of the t6963 driver fixing several problems (see commit note).
* picolcd: Add OffBrightness (S. Crane), more icons and fix bignum
* lcdproc: Fix a single dot appearing on line 5 of the D screen
v0.5.4
* Update driver includes and LDFLAGS (fixed glk and bayrad binding error)
+2 -2
View File
@@ -94,8 +94,8 @@ disk_screen(int rep, int display, int *flags_ptr)
// Fill the display structure...
if (count) {
sock_send_string(sock, "widget_set D err1 30 5 .\n");
sock_send_string(sock, "widget_set D err2 30 5 .\n");
sock_send_string(sock, "widget_set D err1 0 0 .\n");
sock_send_string(sock, "widget_set D err2 0 0 .\n");
for (i = 0; i < count; i++) {
if (strlen(mnt[i].mpoint) > dev_wid)
sprintf(table[i].dev, "-%s", (mnt[i].mpoint) + (strlen(mnt[i].mpoint) - (dev_wid - 1)));