Skip to content

Commit

Permalink
Bug fix in OnApplyChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
59de44955ebd committed Oct 11, 2020
1 parent 6a82182 commit b15f07f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified release/win32/SpoutCam32.ax
Binary file not shown.
Binary file modified release/x64/SpoutCam64.ax
Binary file not shown.
6 changes: 4 additions & 2 deletions source/camprops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ HRESULT CSpoutCamProperties::OnApplyChanges()
hwndCtl = GetDlgItem(this->m_Dlg, IDC_FLIP);
dwFlip = Button_GetCheck(hwndCtl);
WriteDwordToRegistry(HKEY_CURRENT_USER, "Software\\Leading Edge\\SpoutCam", "flip", dwFlip);

if (m_pCamSettings)
m_pCamSettings->put_Settings(dwFps, dwResolution, dwMirror, dwSwap, dwFlip);

CheckPointer(m_pCamSettings, E_POINTER);
return m_pCamSettings->put_Settings(dwFps, dwResolution, dwMirror, dwSwap, dwFlip);
return S_OK;
}
2 changes: 0 additions & 2 deletions source/dshowutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
//}
//#define TRACE(...) OutputDebugStringf(__VA_ARGS__);

#define DBGI(x) {char dbg[32];sprintf(dbg,"%ld",(long)x);OutputDebugStringA(dbg);}

///////////////////////////////////////////////////////////////////////
// Name: ShowFilterPropertyPage
// Desc: Show a filter's property page.
Expand Down

0 comments on commit b15f07f

Please sign in to comment.