Re: [AD] EVDEV mouse driver

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> I've also found that alert doesn't seem to scare the mouse. I didn't
> investigate.

This one should be better. Applied to trunk.

-- 
Eric Botcazou
--- /home/eric/cvs/allegro/src/gui.c	Sat Feb  8 12:03:13 2003
+++ allegro/src/gui.c	Sat Feb  8 23:26:21 2003
@@ -2139,8 +2139,9 @@
 
    maxlen += avg_w*4;
    alert_dialog[0].w = maxlen;
+   alert_dialog[A_S1].w = alert_dialog[A_S2].w = alert_dialog[A_S3].w = maxlen - avg_w*2;
    alert_dialog[A_S1].x = alert_dialog[A_S2].x = alert_dialog[A_S3].x = 
-						alert_dialog[0].x + maxlen/2;
+						alert_dialog[0].x + avg_w;
 
    alert_dialog[A_B1].w = alert_dialog[A_B2].w = alert_dialog[A_B3].w = len1;
 
--- /home/eric/cvs/allegro/src/guiproc.c	Fri Feb  7 14:23:40 2003
+++ allegro/src/guiproc.c	Sat Feb  8 23:24:25 2003
@@ -259,7 +259,7 @@
       if (d->dp2)
 	 font = d->dp2;
 
-      gui_textout_ex(screen, d->dp, d->x, d->y, fg, d->bg, TRUE);
+      gui_textout_ex(screen, d->dp, d->x + d->w/2, d->y, fg, d->bg, TRUE);
 
       font = oldfont;
    }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/