From 326f9ddd8ae215173de18827ffe60939961a1e3b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 29 Jan 2001 22:40:23 +0000 Subject: [PATCH] fixed inverted Y coord for dithering in write_span_DITHER_5R6G5B_ximage() --- src/mesa/drivers/x11/xm_span.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index 623762f..714fcaf 100644 --- a/src/mesa/drivers/x11/xm_span.c +++ b/src/mesa/drivers/x11/xm_span.c @@ -1,10 +1,10 @@ -/* $Id: xm_span.c,v 1.6 2001/01/24 00:04:59 brianp Exp $ */ +/* $Id: xm_span.c,v 1.7 2001/01/29 22:40:23 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 3.5 * - * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -1507,10 +1507,11 @@ static void write_span_DITHER_5R6G5B_ximage( RGBA_SPAN_ARGS ) const XMesaContext xmesa = (XMesaContext) ctx->DriverCtx; register GLuint i; register GLushort *ptr = PIXELADDR2( xmesa->xm_buffer, x, y ); + const GLint y2 = FLIP(xmesa->xm_buffer, y); if (mask) { for (i=0;i