[BRLTTY] [Nvda-dev] Braille support?

Samuel Thibault samuel.thibault at ens-lyon.org
Mon Sep 22 18:46:18 EDT 2008


Hello,

James Teh, le Mon 15 Sep 2008 09:21:47 +1000, a écrit :
> * Even with this serial:com4 configuration, powering down the display 
> causes problems. I see
> Baum Powerdown: power switch
> Subsequently, brltty starts chewing massive amounts of CPU.

I've had some issues with my irda serial port as well: brltty dies
because it divides by brl.x which is 0 in that case.  The attached patch
fixed the issue for me.

Samuel
-------------- next part --------------
Index: Programs/brltty.c
===================================================================
--- Programs/brltty.c	(r?vision 3923)
+++ Programs/brltty.c	(copie de travail)
@@ -516,11 +516,16 @@
 
 static void 
 placeWindowHorizontally (int x) {
-  p->winx = x / brl.x * brl.x;
+  if (!brl.x)
+    p->winx = 0;
+  else
+    p->winx = x / brl.x * brl.x;
 }
 
 static void 
 trackCursor (int place) {
+  if (!brl.x)
+    return;
 #ifdef ENABLE_CONTRACTED_BRAILLE
   if (contracted) {
     p->winy = scr.posy;


More information about the BRLTTY mailing list