From 224eca976adcd39e73d0d2d330394a6c0c5b844d Mon Sep 17 00:00:00 2001 From: mmdolze Date: Mon, 24 Jan 2011 19:45:28 +0000 Subject: [PATCH] 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. --- ChangeLog | 1 + clients/lcdproc/disk.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7d99452..0dce824 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) diff --git a/clients/lcdproc/disk.c b/clients/lcdproc/disk.c index a790065..d7bf8ee 100644 --- a/clients/lcdproc/disk.c +++ b/clients/lcdproc/disk.c @@ -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)));