@@ -220,29 +220,38 @@ CalculateLampPositions(
220220 case 0 :
221221 DeviceContext -> Width = 80000 ;
222222 DeviceContext -> Height = 80000 ;
223+ DeviceContext -> Depth = 2000 * (LampCount / 8 );
223224 for (UINT8 i = 0 ; i <= LampCount / 8 ; i ++ ) {
224225 // 8 LEDs in a circle
225226 // z is 0 for all LEDs, they're all in the same plane
226227 // Bottom LED
227228 DeviceContext -> LampPositions [i + 0 ].x = 40000 ;
228229 DeviceContext -> LampPositions [i + 0 ].y = 0 ;
230+ DeviceContext -> LampPositions [i + 0 ].z = 2000 * i ;
229231 DeviceContext -> LampPositions [i + 1 ].x = 60000 ;
230232 DeviceContext -> LampPositions [i + 1 ].y = 20000 ;
233+ DeviceContext -> LampPositions [i + 1 ].z = 2000 * i ;
231234 // Right LED
232235 DeviceContext -> LampPositions [i + 2 ].x = 80000 ;
233236 DeviceContext -> LampPositions [i + 2 ].y = 40000 ;
237+ DeviceContext -> LampPositions [i + 2 ].z = 2000 * i ;
234238 DeviceContext -> LampPositions [i + 3 ].x = 60000 ;
235239 DeviceContext -> LampPositions [i + 3 ].y = 60000 ;
240+ DeviceContext -> LampPositions [i + 3 ].z = 2000 * i ;
236241 // Top LED
237242 DeviceContext -> LampPositions [i + 4 ].x = 40000 ;
238243 DeviceContext -> LampPositions [i + 4 ].y = 80000 ;
239- DeviceContext -> LampPositions [i + 5 ].x = 20000 ;
244+ DeviceContext -> LampPositions [i + 1 ].z = 2000 * i ;
245+ DeviceContext -> LampPositions [i + 4 ].x = 20000 ;
240246 DeviceContext -> LampPositions [i + 5 ].y = 60000 ;
247+ DeviceContext -> LampPositions [i + 5 ].z = 2000 * i ;
241248 // Left LED
242249 DeviceContext -> LampPositions [i + 6 ].x = 0 ;
243250 DeviceContext -> LampPositions [i + 6 ].y = 40000 ;
251+ DeviceContext -> LampPositions [i + 6 ].z = 2000 * i ;
244252 DeviceContext -> LampPositions [i + 7 ].x = 20000 ;
245253 DeviceContext -> LampPositions [i + 7 ].y = 20000 ;
254+ DeviceContext -> LampPositions [i + 7 ].z = 2000 * i ;
246255 }
247256 break ;
248257 // LEDs arranged in a circle single layer, even distance from each other
@@ -356,6 +365,7 @@ Return Value:
356365 deviceContext -> LampCount = 0 ;
357366 deviceContext -> Width = 0 ;
358367 deviceContext -> Height = 0 ;
368+ deviceContext -> Depth = 2000 ;
359369 LedArrangement = 0 ;
360370 status = CheckRegistryForLedConfig (device );
361371 if (NT_SUCCESS (status )) {
0 commit comments