Przeglądaj źródła

device: cleanup

Daniele Bartolini 6 lat temu
rodzic
commit
d27b3e80c9
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/device/device.cpp

+ 2 - 2
src/device/device.cpp

@@ -554,8 +554,8 @@ void Device::resolution(u16& width, u16& height)
 
 void Device::render(World& world, UnitId camera_unit)
 {
-	float aspect_ratio = (_boot_config.aspect_ratio == -1.0f
-		? (float)_width/(float)_height
+	const f32 aspect_ratio = (_boot_config.aspect_ratio == -1.0f
+		? (f32)_width/(f32)_height
 		: _boot_config.aspect_ratio
 		);
 	world.camera_set_aspect(camera_unit, aspect_ratio);