Mercurial > mm7
comparison Render.cpp @ 1985:ef4dcee1b4a1
Multi-monitor support part1
author | zipi |
---|---|
date | Sat, 02 Nov 2013 12:16:48 +0000 |
parents | 5cd26f2c6904 |
children | 157fd2831567 |
comparison
equal
deleted
inserted
replaced
1984:b00f5bb7d930 | 1985:ef4dcee1b4a1 |
---|---|
1199 RenderD3D__DevInfo *v2; // eax@1 | 1199 RenderD3D__DevInfo *v2; // eax@1 |
1200 | 1200 |
1201 v2 = new RenderD3D__DevInfo[4];// 4 items | 1201 v2 = new RenderD3D__DevInfo[4];// 4 items |
1202 *pOutDevices = v2; | 1202 *pOutDevices = v2; |
1203 memset(v2, 0, 0xA0u); | 1203 memset(v2, 0, 0xA0u); |
1204 DirectDrawEnumerateA((LPDDENUMCALLBACKA)RenderD3D__DeviceEnumerator, *pOutDevices); | 1204 DirectDrawEnumerateExA((LPDDENUMCALLBACKEXA)RenderD3D__DeviceEnumerator, *pOutDevices, DDENUM_ATTACHEDSECONDARYDEVICES); |
1205 } | 1205 } |
1206 | 1206 |
1207 //----- (0049DC58) -------------------------------------------------------- | 1207 //----- (0049DC58) -------------------------------------------------------- |
1208 RenderD3D::RenderD3D() | 1208 RenderD3D::RenderD3D() |
1209 { | 1209 { |
2104 this->window = window; | 2104 this->window = window; |
2105 bStartInWindow = bWindowed; | 2105 bStartInWindow = bWindowed; |
2106 //windowed_mode_width = windowed_width; | 2106 //windowed_mode_width = windowed_width; |
2107 //windowed_mode_height = windowed_height; | 2107 //windowed_mode_height = windowed_height; |
2108 | 2108 |
2109 uDesiredDirect3DDevice = 0;//ReadWindowsRegistryInt("D3D Device", 1); | 2109 uDesiredDirect3DDevice = ReadWindowsRegistryInt("D3D Device", 0); |
2110 | 2110 |
2111 bUseColoredLights = bColoredLights;//ReadWindowsRegistryInt("Colored Lights", 0); | 2111 bUseColoredLights = bColoredLights;//ReadWindowsRegistryInt("Colored Lights", 0); |
2112 uLevelOfDetail = uDetailLevel;//ReadWindowsRegistryInt("Detail Level", 1); | 2112 uLevelOfDetail = uDetailLevel;//ReadWindowsRegistryInt("Detail Level", 1); |
2113 | 2113 |
2114 this->bTinting = bTinting; | 2114 this->bTinting = bTinting; |
3182 { | 3182 { |
3183 if ( !v7->bIsDeviceCompatible ) | 3183 if ( !v7->bIsDeviceCompatible ) |
3184 Error("There aren't any D3D devices to create."); | 3184 Error("There aren't any D3D devices to create."); |
3185 | 3185 |
3186 v8 = pRenderD3D->CreateDevice(0, 0, window->GetApiHandle()); | 3186 v8 = pRenderD3D->CreateDevice(0, 0, window->GetApiHandle()); |
3187 uAcquiredDirect3DDevice = 0; | 3187 uAcquiredDirect3DDevice = 1; |
3188 } | 3188 } |
3189 } | 3189 } |
3190 if ( !v8 ) | 3190 if ( !v8 ) |
3191 Error("D3Drend->Init failed."); | 3191 Error("D3Drend->Init failed."); |
3192 | 3192 |