From 04c06ec6616d6af31491e121db896d34a82914d9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 20 Jun 2019 07:42:16 -0400 Subject: VideoCommon/Statistics: Use std::array for projection values Makes the members within the interface much nicer to look at, and also makes copying them over much nicer too. --- Source/Core/VideoCommon/VertexManagerBase.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp') diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index 06168c6cec..a539d2673b 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -384,15 +384,15 @@ void VertexManagerBase::Flush() // Track some stats used elsewhere by the anamorphic widescreen heuristic. if (!SConfig::GetInstance().bWii) { - float* rawProjection = xfmem.projection.rawProjection; - bool viewport_is_4_3 = AspectIs4_3(xfmem.viewport.wd, xfmem.viewport.ht); - if (AspectIs16_9(rawProjection[2], rawProjection[0]) && viewport_is_4_3) + const auto& raw_projection = xfmem.projection.rawProjection; + const bool viewport_is_4_3 = AspectIs4_3(xfmem.viewport.wd, xfmem.viewport.ht); + if (AspectIs16_9(raw_projection[2], raw_projection[0]) && viewport_is_4_3) { // Projection is 16:9 and viewport is 4:3, we are rendering an anamorphic // widescreen picture. m_flush_count_anamorphic++; } - else if (AspectIs4_3(rawProjection[2], rawProjection[0]) && viewport_is_4_3) + else if (AspectIs4_3(raw_projection[2], raw_projection[0]) && viewport_is_4_3) { // Projection and viewports are both 4:3, we are rendering a normal image. m_flush_count_4_3++; -- cgit v1.2.3