|
DefWindowProc Pauses MAME on Resize
In MAME if you resize/move the window then the game will pause. This is bad for score mode where we want to be in control of pauses.
This is caused by Windows. It is not in the MAME code but in the code of Windows.
I've googled the problem and some people say creating an additional thread will solve this. I do not know how to try that. I know mame is already multithreaded. Not sure if there is more than one way to do it or what.
The pause is caused by DefWindowProc in window.c.
DefWindowProc is the default windows process that handles all window messages that the program does not handle itself.
What needs to happen is in
case WM_SYSCOMMAND:
Something like this needs to be added
if (cmd == SC_SIZE)
{
//insert custom size code here.
}
if (cmd == SC_MOVE)
{
//insert custom move code here.
}
Can anyone help me with that? I want to override DefWindowProc and handle size and move myself.
If not then I will have to disable move and size in score mode.
Thanks.
|