nanogui: MWWINDOFBINFO.x and .y
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/