nanogui: Microwindows 0.87pre3 released


Previous by date: 20 Dec 1999 09:14:39 -0000 Re: Conversion of PIXELVALs <-> COLORVALs, Morten Rolland
Next by date: 20 Dec 1999 09:14:39 -0000 Re: Conversion of PIXELVALs <-> COLORVALs, Greg Haerr
Previous in thread: 20 Dec 1999 09:14:39 -0000 Re: Microwindows 0.87pre3 released, Daniel R Risacher
Next in thread: 20 Dec 1999 09:14:39 -0000 Re: Microwindows 0.87pre3 released, Greg Haerr

Subject: Re: Microwindows 0.87pre3 released
From: Morten Rolland ####@####.####
Date: 20 Dec 1999 09:14:39 -0000
Message-Id: <385DFFD9.E4238D8F@screenmedia.no>

Greg Haerr wrote:
> 
> A hopefully last prerelease to Microwindows 0.87 is available at:

Some points to consider before a final release:

  * Some people (like myself..:) prefer a directory structure
    for include files like:

        .../microwin/include/microwin/*.h

    This makes it possible to say 'cc -I.../microwin/include' and
    specify '#include <microwin/nano-X.h>' in the source files.
    Specifying the header files as microwin/*.h helps avoid name
    space pollution/conflicts, and makes it obvious where the
    header files originate.  This is similar to how X11 does
    things fx.: /usr/include/X11/*.h

    This is a major rewrite of how applications are written, and
    should be considered now, before a release.  By including both
    -I$(TOPDIR)/include and -I$(TOPDIR)/include/microwin in the
    Makefile, the demos shouldn't need rewriting, but the standard
    could be defined (come to think of it, the demos probably should
    follow the standard...)

  * In gcc, sizeof(*(void *)) == 1, but this is not automatically
    the case IIRC (it may even be configurable), so the pixel
    increment code in GrArea in nanox/client.c should read something
    like (this is not tested):

    void 
    GrArea(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y, GR_SIZE width,
           GR_SIZE height, void *pixels, int pixtype)
    ...

    req->width = width;
    req->height = chunk_y;
    req->pixtype = pixtype;
    memmove(GetReqData(req), pixels, size);
-    pixels += size;
+    pixels = (void *)(((char *)pixels)+size);
    y += chunk_y;
    height -= chunk_y;

... in order to be portable.

This is just my NOK 0.5 from quickly browsing the new release.  It looks
really good at first glance!

Regards,
Morten Rolland

Previous by date: 20 Dec 1999 09:14:39 -0000 Re: Conversion of PIXELVALs <-> COLORVALs, Morten Rolland
Next by date: 20 Dec 1999 09:14:39 -0000 Re: Conversion of PIXELVALs <-> COLORVALs, Greg Haerr
Previous in thread: 20 Dec 1999 09:14:39 -0000 Re: Microwindows 0.87pre3 released, Daniel R Risacher
Next in thread: 20 Dec 1999 09:14:39 -0000 Re: Microwindows 0.87pre3 released, Greg Haerr


Powered by ezmlm-browse 0.20.