From: Brian Paul Date: Mon, 29 Jan 2001 22:40:23 +0000 (+0000) Subject: fixed inverted Y coord for dithering in write_span_DITHER_5R6G5B_ximage() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=326f9ddd8ae215173de18827ffe60939961a1e3b;p=mesa.git fixed inverted Y coord for dithering in write_span_DITHER_5R6G5B_ximage() --- diff --git a/src/mesa/drivers/x11/xm_span.c b/src/mesa/drivers/x11/xm_span.c index 623762f2057..714fcaf31ec 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