Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xf86-video-suncg14/dist/src treat PictOpOver ...



details:   https://anonhg.NetBSD.org/xsrc/rev/da62f8c3b8ca
branches:  trunk
changeset: 6977:da62f8c3b8ca
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed May 11 21:13:13 2022 +0000

description:
treat PictOpOver with a solid source and an empty mask as simple fill
somewhat less glitchiness in gtk3 but we're not quite there yet

diffstat:

 external/mit/xf86-video-suncg14/dist/src/cg14_accel.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 9a6cc383c01d -r da62f8c3b8ca external/mit/xf86-video-suncg14/dist/src/cg14_accel.c
--- a/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c     Wed May 11 21:10:37 2022 +0000
+++ b/external/mit/xf86-video-suncg14/dist/src/cg14_accel.c     Wed May 11 21:13:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cg14_accel.c,v 1.31 2022/05/11 21:10:37 macallan Exp $ */
+/* $NetBSD: cg14_accel.c,v 1.32 2022/05/11 21:13:13 macallan Exp $ */
 /*
  * Copyright (c) 2013 Michael Lorenz
  * All rights reserved.
@@ -1360,6 +1360,11 @@
                                                    dst, dstpitch,
                                                    width, height);
                                                break;
+                                       case 0:
+                                               DPRINTF(X_ERROR, "%s: Over with solid %08x and no mask\n", __func__, p->fillcolour);
+                                               CG14PrepareSolid(pDst, GXcopy, 0xffffffff, p->fillcolour);
+                                               CG14Solid(pDst, dstX, dstY, width, height);
+                                               break;
                                        default:
                                                xf86Msg(X_ERROR,
                                                  "unsupported mask format %08x\n", p->mskformat);



Home | Main Index | Thread Index | Old Index