First post, by Sephiroth
- Rank
- Member
I've discovered a rather annoying problem in DOSBox 0.72, and it may have been in prior versions as well. Apparently, DOSBox doesn't handle the "SC_SCREENSAVE" and/or "SC_MONITORPOWER" messages. What this means is that if you pause a game and step away for a few minutes, the screensaver will pop up, the game goes into some windowed state that isn't really windowed, and you have to alt+enter a few times to get it back to normal. This is fine, but it screws up the mouse sensitivity in games, making it twice as sensitive and rendering games like Shadow Warrior unplayable.
I use the following code in my OpenGL engine to deal with these annoyances.
case WM_SYSCOMMAND:
{
switch (wParam)
{
case SC_SCREENSAVE:
case SC_MONITORPOWER:
return 0;
}
break;
}
Simple C code, but this annoyed the heck out of me when I started OpenGL programming years back!
486 Launcher v2.0 is now under development!