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:
@@ -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