Subject: Re: Picasso2 and NetBSD 1.1
To: Olivier PROMPT <p6pe108@ibm1.cicrp.jussieu.fr>
From: Phil Kernick <philk@dhn.csiro.au>
List: port-amiga
Date: 09/05/1996 18:54:03
Hi Olivier,

> I've tryed many times to make it works but with no result. My Picasso is a
> 1M too and Xcl, XclBIG or Xcl16 doesn't work under NetBSD 1.0 and 1.1.

I finally have a solution.  It's at the end.

> At NetBSD Startup is your Picasso mounted as a 2M Picasso ?

Yes.  I changed the kernel so that it was a 1M board, but as you
discovered, that doesn't make any difference.

> Yes, and during X startup is the sceen filled (in B&W) by the old picture
> (ex WorkBench) that was in the Picasso's memory ?

That's normal.  It's just what was there before.

> Is Cybergfx working correctly with your board ? (if yes which version)

I've never tried GyberGFX.  The Picasso software works well enough for me.

The solutions to the corrupt pointer is to disable the hardware cursor.  It
is done by editing grf_cl.c as follows:

Changes the lines in cl_ioctl from:

            case GRFIOCGSPRITEPOS:
                return (cl_getmousepos(gp, (struct grf_position *) data));
   
            case GRFIOCSSPRITEPOS:
                return (cl_setmousepos(gp, (struct grf_position *) data));

            case GRFIOCSSPRITEINF:
                return (cl_setspriteinfo(gp, (struct grf_spriteinfo *) data));

            case GRFIOCGSPRITEINF:
                return (cl_getspriteinfo(gp, (struct grf_spriteinfo *) data));

            case GRFIOCGSPRITEMAX:
                return (cl_getspritemax(gp, (struct grf_position *) data));

to:

	case GRFIOCGSPRITEPOS:
	case GRFIOCSSPRITEPOS:
	case GRFIOCSSPRITEINF:
	case GRFIOCGSPRITEINF:
	case GRFIOCGSPRITEMAX:
	    return (EINVAL);


I now have a perfect cursor in Xcl.


Phil.

-- 
   _-_|\   Phil Kernick                      E-Mail: philk@dhn.csiro.au
  /     \  IT Manager                        Phone:  (08) 8303 8812
  \_.-*_/  CSIRO Div. Human Nutrition        Fax:    (08) 8303 8896
       v   PO Box 10041  Gouger Street       Mobile:   04 1981 0849
           Adelaide, SA 5000, Australia   "Me transmitte sursum, Caledoni!"