From c2a7375788aea0cf1c0f4c45e4823a8a9a85264d Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Tue, 26 Jun 2012 23:01:17 +0200 Subject: Removed trailing whitespace --- src/old/d3denum.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/old/d3denum.cpp') diff --git a/src/old/d3denum.cpp b/src/old/d3denum.cpp index 234ce5a..1f02eb2 100644 --- a/src/old/d3denum.cpp +++ b/src/old/d3denum.cpp @@ -212,7 +212,7 @@ static bool WINAPI DriverEnumCallback( GUID* pGUID, TCHAR* strDesc, LPDIRECTDRAW7 pDD; LPDIRECT3D7 pD3D; HRESULT hr; - + // Use the GUID to create the DirectDraw object hr = DirectDrawCreateEx( pGUID, (VOID**)&pDD, IID_IDirectDraw7, NULL ); if( FAILED(hr) ) @@ -280,7 +280,7 @@ HRESULT D3DEnum_EnumerateDevices( HRESULT (*AppConfirmFn)(DDCAPS*, D3DDEVICEDESC g_fnAppConfirmFn = AppConfirmFn; // Enumerate drivers, devices, and modes - DirectDrawEnumerateEx( DriverEnumCallback, NULL, + DirectDrawEnumerateEx( DriverEnumCallback, NULL, DDENUM_ATTACHEDSECONDARYDEVICES | DDENUM_DETACHEDSECONDARYDEVICES | DDENUM_NONDISPLAYDEVICES ); @@ -370,7 +370,7 @@ static VOID UpdateDialogControls( HWND hDlg, D3DEnum_DeviceInfo* pCurrentDevice, // Add device name to the combo box DWORD dwItem = ComboBox_AddString( hwndDevice, pDevice->strDesc ); - + // Set the remaining UI states for the current device if( pDevice == pCurrentDevice ) { @@ -383,7 +383,7 @@ static VOID UpdateDialogControls( HWND hDlg, D3DEnum_DeviceInfo* pCurrentDevice, EnableWindow( hwndWindowed, pDevice->bDesktopCompatible ); Button_SetCheck( hwndWindowed, bWindowed ); } - + // Enable/set the stereo checkbox, as appropriate if( hwndStereo ) { @@ -436,7 +436,7 @@ static VOID UpdateDialogControls( HWND hDlg, D3DEnum_DeviceInfo* pCurrentDevice, // Name: ChangeDeviceProc() // Desc: Windows message handling function for the device select dialog //----------------------------------------------------------------------------- -static INT_PTR CALLBACK ChangeDeviceProc( HWND hDlg, UINT uiMsg, WPARAM wParam, +static INT_PTR CALLBACK ChangeDeviceProc( HWND hDlg, UINT uiMsg, WPARAM wParam, LPARAM lParam ) { static D3DEnum_DeviceInfo** ppDeviceArg; @@ -453,7 +453,7 @@ static INT_PTR CALLBACK ChangeDeviceProc( HWND hDlg, UINT uiMsg, WPARAM wParam, // Handle the initialization message if( WM_INITDIALOG == uiMsg ) { - // Get the app's current device, passed in as an lParam argument + // Get the app's current device, passed in as an lParam argument ppDeviceArg = (D3DEnum_DeviceInfo**)lParam; if( NULL == ppDeviceArg ) return false; @@ -484,7 +484,7 @@ static INT_PTR CALLBACK ChangeDeviceProc( HWND hDlg, UINT uiMsg, WPARAM wParam, bool bStereo = hwndStereo ? Button_GetCheck( hwndStereo ) : 0; D3DEnum_DeviceInfo* pDevice = &pDeviceList[dwDevice]; - + if( IDOK == LOWORD(wParam) ) { // Handle the case when the user hits the OK button. Check if any @@ -608,7 +608,7 @@ HRESULT D3DEnum_SelectDefaultDevice( D3DEnum_DeviceInfo** ppDevice, else return D3DENUMERR_NOCOMPATIBLEDEVICES; - // Set the windowed state of the newly selected device + // Set the windowed state of the newly selected device (*ppDevice)->bWindowed = true; return S_OK; -- cgit v1.2.3-1-g7c22