Skip to content

Commit

Permalink
bring back erasebknd check!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Madghostek committed Apr 24, 2021
1 parent c28cd16 commit e223465
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tasinput_plugin/src/DefDI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,16 @@ struct Status
Extend = 1|2;
positioned = false;
comboTask = C_IDLE;
once = true;
}

void StartThread(int ControllerNumber)
{
HANDLE prevStatusThread = statusThread;
HWND prevStatusDlg = statusDlg;

once = true; //redraw once

Control = ControllerNumber;
dwThreadId = Control;
dwThreadParam = MAKEWORD(Control, Extend);
Expand Down Expand Up @@ -190,6 +193,8 @@ struct Status
int comboTask;
int activeCombo;
bool fakeInput;

bool once;

void FreeCombos();

Expand Down Expand Up @@ -1342,6 +1347,7 @@ EXPORT void CALL RomOpen (void) {
RomClosed();
romIsOpen = true;


HKEY hKey;
DWORD dwSize, dwType, dwDWSize, dwDWType;

Expand Down Expand Up @@ -1702,9 +1708,12 @@ LRESULT Status::StatusDlgMethod (UINT msg, WPARAM wParam, LPARAM lParam)
break;

case WM_ERASEBKGND:
return TRUE; // just tell windows its handled and thats that!!
// if you are reading this in a few years and windows update broke it just fiddle with this until it works ok -auru

if (once)
{
once = false;
break;
}
return TRUE;
case WM_INITDIALOG:
{
// reset some dialog state
Expand Down

0 comments on commit e223465

Please sign in to comment.