Commit fbaf3cea authored by Keith Packard's avatar Keith Packard
Browse files

hw/kdrive/trident: solid fill checks busted for planemasking

parent 216090d1
......@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $XFree86: xc/programs/Xserver/hw/kdrive/trident/tridentdraw.c,v 1.9 2001/05/30 15:36:25 keithp Exp $ */
/* $XFree86: xc/programs/Xserver/hw/kdrive/trident/tridentdraw.c,v 1.10 2001/06/03 18:48:19 keithp Exp $ */
#include "trident.h"
#include "tridentdraw.h"
......@@ -80,9 +80,8 @@ tridentPrepareSolid (DrawablePtr pDrawable,
Pixel pm,
Pixel fg)
{
FbBits depthMask;
FbBits depthMask = FbFullMask(pDrawable->depth);
depthMask = FbFullMask(pDrawable->depth);
if ((pm & depthMask) != depthMask)
return FALSE;
else
......@@ -117,7 +116,7 @@ tridentPrepareCopy (DrawablePtr pSrcDrawable,
int alu,
Pixel pm)
{
FbBits depthMask;
FbBits depthMask = FbFullMask(pDstDrawable->depth);
if ((pm & depthMask) == depthMask)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment