Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse cursor missing in King's Quest V (SCIKQ5.EXE) #1118

Closed
Dwedit opened this issue Feb 11, 2022 · 3 comments · Fixed by #1123
Closed

Mouse cursor missing in King's Quest V (SCIKQ5.EXE) #1118

Dwedit opened this issue Feb 11, 2022 · 3 comments · Fixed by #1123

Comments

@Dwedit
Copy link

Dwedit commented Feb 11, 2022

Describe the bug
It is possible to get the Windows 3.1 version of King's Quest V to run on Windows 10 with OTDVM if you change two settings in "Properties" for SCIKQ5.EXE:

  • Turn on "Reduced Color Mode (256 Colors)"
  • Turn on "Run in 640 x 480 screen resolution"

If you do these, the game will start. Windows doesn't actually change your video mode to 640x480x256, it leaves it alone. The game's window will be maximized, and the game screen will appear in the top-left corner of the window. Restore the window and it will be the correct size.

However, the mouse cursor is completely missing, as if there was a problem loading all the custom mouse cursors.

Expected behavior
Mouse cursor should appear. The game uses custom cursors for everything, and these are missing or not loaded correctly.

Screenshots
Screenshots usually don't include the mouse cursor anyway

Environment (please complete the following information):

  • OS: Windows 10 64-bit
  • Version 10.0.19042.1526
  • Using OTVDM dev2261

Tracelog

https://www.dwedit.org/files/.tracelog/Tracelog%20OTVDM%20SCIKQ5.7z

@cracyc
Copy link
Contributor

cracyc commented Feb 11, 2022

This is the same problem as #1030, it draws into the cursor memory which isn't supported in nt which is why it doesn't work in ntvdm either.

@Dwedit
Copy link
Author

Dwedit commented Feb 11, 2022

So then is there a way to detect when a program is trying to do this without polling cursor memory 60 times per second?

@cracyc
Copy link
Contributor

cracyc commented Feb 11, 2022

It's not hard to detect, it uses LockResource(hicon) when starting to draw and GlobalUnlock(hicon) when done. As I said in the other thread it's quite possible to do, just the code to make it happen isn't trivial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants