From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079085416046.tru64-unix-managers.marc@archive.invalid> From: Yves BLUSSEAU Date: Wed, 03 Nov 1999 09:17:18 +0000 To: tru64-unix-managers Subject: Bug on Elsa Gloria graphic card. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079085416046 I have found a big bug running X applications on my PWS 433 and X1000 (4.0F) with an Elsa Gloria graphic card. Sometime when I scroll big windows the drawing is made outside the window borders (all over the screen). Could someone try the following program (on a platform with an Elsa Gloria) and send me feeback by mail (yves.blusseau@sncf.fr). Launch the program with this parameters: bug -N 256 -S 128 -B 0 -C 255 and scroll smoothly. Compile the program with this options: cc -o bug bug.c -lX11 -lXt -lXm The Program (bug.c): /********************************************************************************/ /* */ /* bug.c */ /* Programme de test des cartes graphiques */ /* */ /* developpe le 13/10/1999 par D.Deman (SII Sannois) */ /* pour l'agence AIGF-MC de la S.N.C.F */ /* */ /********************************************************************************/ /* * Ce programme affiche dans une fenetre deroulante un texte * et dans une autre un rectangle gradue */ /* * Options de la ligne de Commande : * * -N nombre nombre de cartouche * -S pixels taille des cartouches en pixels * -B pixels taille de la bordure * * -F fonte fonte du texte de la zone de texte * * -C couleur couleur du trace * * -h liste des options */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include Widget top; Widget scw; Widget con; Widget txt; Widget drw; Widget lbl; GC gc; XGCValues gcv; unsigned long gcm; Display *disp; Window win; XFontStruct *fnt; XmFontList flst; int larg; int size; int bord; long coul; int haut; char *str; XmString xlbl; char lab[1024]; int Erreur = 0; int (*err_hnd)(Display *,XErrorEvent *); int my_err_hnd(Display *d,XErrorEvent *err) { Erreur = 1; return err->error_code; } void TxtExposeHnd() { XmTextPosition p; int i; int j; int l; int k; int n; /* nombre de caracteres */ i = (larg * size + 2 * bord - 10 /* pour la marge */ ) / fnt->max_bounds.width; /* while ( (i+1) * fnt->max_bounds.width > larg * size + 2 * bord - 10) i--; */ /* libelle du label */ memset(lab,'\0',1023); sprintf(lab, "Dessin : %d x %d + 2 x %d = %d --- Texte : %d x %d = %d", larg,size,bord, larg*size+2*bord, i,fnt->max_bounds.width, i*fnt->max_bounds.width ); xlbl = XmStringCreateSimple( lab ); /* nombre de lignes */ j=1; l=0; while ( j < i ) { j*=10; l++; } /* hauteur de la zone texte */ haut = (l+1) * (fnt->ascent + fnt->descent) + 10 /* pour la marge */ ; /* contenu de la zone texte */ str = (char *) calloc ( (i+2) * l + 1 ,sizeof(char) ); memset(str,' ',(i+1)*l); for (j=1;j