aboutsummaryrefslogtreecommitdiffstats
path: root/enable.c
diff options
context:
space:
mode:
authorJaroslav Hensl <jara@hensl.cz>2024-06-03 21:29:10 +0200
committerJaroslav Hensl <jara@hensl.cz>2024-06-03 21:29:10 +0200
commit1280980dd1b1ed8c87c29ea3f95c4c58f844c295 (patch)
tree09497e6af33d6adc8e97fec6c44476b780975f26 /enable.c
parent7940d6adfa546d7946861f81daad8e1774ef2991 (diff)
downloadvmdisp9x-1280980dd1b1ed8c87c29ea3f95c4c58f844c295.tar.gz
screen target usage is stable
Diffstat (limited to 'enable.c')
-rw-r--r--enable.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/enable.c b/enable.c
index d1e7cf7..9958063 100644
--- a/enable.c
+++ b/enable.c
@@ -377,10 +377,18 @@ UINT WINAPI __loadds Enable( LPVOID lpDevice, UINT style, LPSTR lpDeviceType,
* faster than most mid-1990s graphics cards.
*/
lpInfo->dpCaps1 |= C1_COLORCURSOR | C1_REINIT_ABLE | C1_BYTE_PACKED | C1_GLYPH_INDEX; /* | C1_SLOW_CARD */;
- //lpInfo->dpCaps1 &= ~C1_GLYPH_INDEX;
lpInfo->dpText |= TC_CP_STROKE | TC_RA_ABLE;
-
+
+#if 0
+ /* JH: screen target implementation is much slower for DIB than classical
+ * frame buffer access. So set C1_SLOW_CARD for this case.
+ */
+ if(hda->flags & FB_ACCEL_VMSVGA10_ST)
+ {
+ lpInfo->dpCaps1 |= C1_SLOW_CARD;
+ }
dbg_printf( "lpInfo->dpCaps1: %lX\n", (DWORD)lpInfo->dpCaps1);
+#endif
/* Grab the DIB Engine PDevice size before we add to it. */
wDIBPdevSize = lpInfo->dpDEVICEsize;