From 8678402c2510fd0390a4392824d5add9f3115392 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 20 Dec 2024 16:46:48 +0100 Subject: [PATCH] cellGem: fix some data types --- rpcs3/Emu/Cell/Modules/cellGem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellGem.cpp b/rpcs3/Emu/Cell/Modules/cellGem.cpp index edd0933fe6..eb043ed2bb 100644 --- a/rpcs3/Emu/Cell/Modules/cellGem.cpp +++ b/rpcs3/Emu/Cell/Modules/cellGem.cpp @@ -854,7 +854,7 @@ public: { if (g_cfg.io.move != move_handler::real) { - return 1; // potentially true if less than 20 pixels have the hue + return true; // potentially true if less than 20 pixels have the hue } return hue < m_hues.size() && m_hues[hue] < 20; // potentially true if less than 20 pixels have the hue @@ -1920,9 +1920,9 @@ error_code cellGemGetCameraState(vm::ptr camera_state) // TODO: use correct camera settings camera_state->exposure = 0; camera_state->exposure_time = 1.0f / 60.0f; - camera_state->gain = 1.0; - camera_state->pitch_angle = 0.0; - camera_state->pitch_angle_estimate = 0.0; + camera_state->gain = 1.0f; + camera_state->pitch_angle = 0.0f; + camera_state->pitch_angle_estimate = 0.0f; return CELL_OK; }