diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-04 15:01:33 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-04 15:01:33 +0000 |
commit | eae73dbd916d3109224fdb938120acd1abb6b646 (patch) | |
tree | 2b51387a279767473003ae991188fe0319e5f281 /src/mesa/drivers/dri/ffb | |
parent | 90cfbd3dd5f30d73a4ed7f96cc740f11c7fb0af9 (diff) |
Use InitPointers helper
Diffstat (limited to 'src/mesa/drivers/dri/ffb')
-rw-r--r-- | src/mesa/drivers/dri/ffb/ffb_span.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/ffb/ffb_span.c b/src/mesa/drivers/dri/ffb/ffb_span.c index a23f4c66f0..fff7fa1d3f 100644 --- a/src/mesa/drivers/dri/ffb/ffb_span.c +++ b/src/mesa/drivers/dri/ffb/ffb_span.c @@ -93,7 +93,7 @@ do { unsigned int fbc, ppc, cmp; \ fmesa->ffbScreen->rp_active = 1; \ } while(0) -#define Y_FLIP(__y) (height - __y) +#define Y_FLIP(__y) (height - __y - 1) #define READ_RGBA(rgba,__x,__y) \ do { GLuint p = *(GLuint *)(buf + ((__x)<<2) + ((__y)<<13)); \ @@ -125,11 +125,5 @@ ffbSetSpanFunctions(driRenderbuffer *drb, const GLvisual *vis) assert(vis->redBits == 8); assert(vis->greenBits == 8); assert(vis->blueBits == 8); - drb->Base.GetRow = ffbReadRGBASpan_888; - drb->Base.GetValues = ffbReadRGBAPixels_888; - drb->Base.PutRow = ffbWriteRGBASpan_888; - drb->Base.PutRowRGB = ffbWriteRGBSpan_888; - drb->Base.PutMonoRow = ffbWriteMonoRGBASpan_888; - drb->Base.PutValues = ffbWriteRGBAPixels_888; - drb->Base.PutMonoValues = ffbWriteMonoRGBAPixels_888; + ffbInitPointers_888(&drb->Base); } |