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:
@@ -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)
|
||||
|
||||
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user