Retro Uprising
  Home Game Menu Rules and FAQs Forum Community Chat Today's Posts Search Register  
Go Back   Retro Uprising > Other > Programmers Developers Designers

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 03-19-2014, 10:33 PM   #1
Kong's Avatar
 
Kong

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.
My SignatureDisplay Signature Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ and MAME Kong Programmers Developers Designers 10 08-10-2014 01:19 PM
The ultimate RU Mame Cabinet Youchoptrees Chat 5 04-24-2013 12:30 AM
im buildind a mame cabinet Slime Slayer Help 30 08-06-2012 12:24 AM
Can Someone Resize Some Images For Me? TrakMastaTom Help 2 09-09-2010 09:10 AM


All times are GMT -5. The time now is 03:24 PM.

» vBadvanced CMPS