changeset 2:13322eadf475 default tip

Do not set C1_SLOW_CARD and get visual effects back.
author Michal Necasek <mnecasek@yahoo.com>
date Thu, 07 Jul 2022 18:00:44 +0200
parents 0c8e36318ee3
children
files enable.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/enable.c	Mon Jun 20 20:20:05 2022 +0200
+++ b/enable.c	Thu Jul 07 18:00:44 2022 +0200
@@ -316,7 +316,12 @@
         lpInfo->dpLogPixelsY = wDpi;
         lpInfo->dpBitsPixel  = wBpp;
         lpInfo->dpDCManage   = DC_IgnoreDFNP;
-        lpInfo->dpCaps1 |= C1_BYTE_PACKED | C1_COLORCURSOR | C1_REINIT_ABLE | C1_SLOW_CARD;
+        /* In theory we should set the C1_SLOW_CARD flag since this driver is unaccelerated.
+         * This flag disables certain visual effects like "embossed" disabled text or animations.
+         * Realistically, software rendering in a VM on a modern system is going to be a lot
+         * faster than most mid-1990s graphics cards.
+         */
+        lpInfo->dpCaps1 |= C1_BYTE_PACKED | C1_COLORCURSOR | C1_REINIT_ABLE /*| C1_SLOW_CARD*/;
 
         /* Grab the DIB Engine PDevice size before we add to it. */
         wDIBPdevSize = lpInfo->dpDEVICEsize;