summaryrefslogtreecommitdiffstats
path: root/src/old/d3denum.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-26 23:01:17 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-26 23:01:17 +0200
commitc2a7375788aea0cf1c0f4c45e4823a8a9a85264d (patch)
tree932e79f6940366a96f25fee83510a5193a7cb1e3 /src/old/d3denum.cpp
parentcf312c0b870175b8897ce98df6a8c46ccce92e2e (diff)
downloadcolobot-c2a7375788aea0cf1c0f4c45e4823a8a9a85264d.tar.gz
colobot-c2a7375788aea0cf1c0f4c45e4823a8a9a85264d.tar.bz2
colobot-c2a7375788aea0cf1c0f4c45e4823a8a9a85264d.zip
Removed trailing whitespace
Diffstat (limited to 'src/old/d3denum.cpp')
-rw-r--r--src/old/d3denum.cpp16
1 files changed, 8 insertions, 8 deletions
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;