nanogui: Thread: MWWINDOFBINFO.x and .y


[<<] [<] Page 1 of 1 [>] [>>]
Subject: MWWINDOFBINFO.x and .y
From: Dave Poirier ####@####.####
Date: 4 Jan 2002 04:47:01 -0000
Message-Id: <20020104044454.GA21153@void-core.2y.net>

I've noticed that in almost all structures of include/mwtypes.h, the
coordinates are defined using MWCOORD, but in this particular structure,
'x' and 'y' are defined as int.  Sure MWCOORD is defined as a 'int'
earlier but shouldn't they be defined as MWCOORD in this structure too?

typedef struct {
 unsigned char * physpixels;     /* address of real framebuffer*/
        /* note winpixels is only correct in non-portrait modes*/
 unsigned char * winpixels;      /* address of 0,0 this window in fb*/
 int     pixtype;        /* MWPF_ pixel type*/
 int     bpp;            /* bits per pixel*/
 int     bytespp;        /* bytes per pixel*/
 int     pitch;          /* bytes per scan line for window (=fbpitch)*/
 int     x, y;           /* absolute virtual window coordinates*/
 int     portrait_mode;  /* current portrait mode*/
 MWCOORD xres;           /* real framebuffer resolution*/
 MWCOORD yres;
 MWCOORD xvirtres;       /* virtual framebuffer resolution*/
 MWCOORD yvirtres;
} MWWINDOWFBINFO;
-- 
EKS - Dave Poirier                               ####@####.####
"may the hairs on his toes never fall out"           http://uuu.sf.net/
Subject: Re: [nanogui] MWWINDOFBINFO.x and .y
From: "Greg Haerr" ####@####.####
Date: 4 Jan 2002 05:59:42 -0000
Message-Id: <005e01c194e3$a3a57060$3aba46a6@xmission.com>

: I've noticed that in almost all structures of include/mwtypes.h, the
: coordinates are defined using MWCOORD, but in this particular structure,
: 'x' and 'y' are defined as int.  Sure MWCOORD is defined as a 'int'
: earlier but shouldn't they be defined as MWCOORD in this structure too?

Yes.  I'll fix it in the next cut, thanks.

Regards,

Greg



: 
: typedef struct {
:  unsigned char * physpixels;     /* address of real framebuffer*/
:         /* note winpixels is only correct in non-portrait modes*/
:  unsigned char * winpixels;      /* address of 0,0 this window in fb*/
:  int     pixtype;        /* MWPF_ pixel type*/
:  int     bpp;            /* bits per pixel*/
:  int     bytespp;        /* bytes per pixel*/
:  int     pitch;          /* bytes per scan line for window (=fbpitch)*/
:  int     x, y;           /* absolute virtual window coordinates*/
:  int     portrait_mode;  /* current portrait mode*/
:  MWCOORD xres;           /* real framebuffer resolution*/
:  MWCOORD yres;
:  MWCOORD xvirtres;       /* virtual framebuffer resolution*/
:  MWCOORD yvirtres;
: } MWWINDOWFBINFO;
: -- 
: EKS - Dave Poirier                               ####@####.####
: "may the hairs on his toes never fall out"           http://uuu.sf.net/
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.