otya128 / winevdm

16-bit Windows (Windows 1.x, 2.x, 3.0, 3.1, etc.) on 64-bit Windows
GNU General Public License v2.0
2.64k stars 150 forks source link

Transparency glitch for Indiana Jones and his Desktop Adventures #1016

Open Hexaae opened 3 years ago

Hexaae commented 3 years ago

Version used: otvdm-master-2123.zip Game: Indiana Jones and his Desktop Adventures (+ I copied WAVEMIX.DLL and WAVEMIX.INI from Windows 3.11 installation into the game dir to play music too)

Describe the bug Transparency glitch around baloon dialogues showing black rectangular areas instead of expected transparency.

Expected behavior Black rectangular areas should be transparent.

Screenshots image

Environment (please complete the following information):

cracyc commented 3 years ago

The text box is a separate window and DWM compositing, which cannot be disabled on windows 8+, breaks this. Lode runner 3 (https://github.com/otya128/winevdm/issues/176) has a similar problem.

Hexaae commented 3 years ago

Thanks for quick reply. Do you think in the future a workaround-fix could be possible, or is technically impossible since it's running in a window of Win 10 desktop with DWM?

cracyc commented 3 years ago

I don't think there are any good solutions. There are ways to make windows use a color key mask for transparency which does work here but it causes other problems. Thankfully the issue doesn't effect the playability of the game.

Hexaae commented 3 years ago

Maybe as an option to enable that transparency hack per game/task only. Something like: ForceKeyMaskTransparency="task name1.exe","task name 2.exe", ... in otvdm.ini?

Anixx commented 3 years ago

DWM can be disabled on Win 8-Win10. For instance, I have tested Lode Runner on Win 8.1 with DWM disabled and the glitch disappeared.