diff options
author | Jaroslav Hensl <jara@hensl.cz> | 2024-06-03 21:29:10 +0200 |
---|---|---|
committer | Jaroslav Hensl <jara@hensl.cz> | 2024-06-03 21:29:10 +0200 |
commit | 1280980dd1b1ed8c87c29ea3f95c4c58f844c295 (patch) | |
tree | 09497e6af33d6adc8e97fec6c44476b780975f26 /enable.c | |
parent | 7940d6adfa546d7946861f81daad8e1774ef2991 (diff) | |
download | vmdisp9x-1280980dd1b1ed8c87c29ea3f95c4c58f844c295.tar.gz |
screen target usage is stable
Diffstat (limited to 'enable.c')
-rw-r--r-- | enable.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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;
|