From 5c14cc707bc801a4024acadf2a03f3f3cfe976ae Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 4 Jul 2024 07:32:32 +1000 Subject: emu/rendersw.hxx: Appease complilers that don't believe in constexpr trigonometry. --- src/emu/rendersw.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/rendersw.hxx b/src/emu/rendersw.hxx index ccd30912034..faa705adebf 100644 --- a/src/emu/rendersw.hxx +++ b/src/emu/rendersw.hxx @@ -31,7 +31,7 @@ private: // internal helpers template - static constexpr auto make_cosine_table(std::integer_sequence) { return std::array{ u32((1.0 / cos(atan(double(Values) / double(sizeof...(Values) - 1)))) * 0x10000000 + 0.5)... }; } + static auto make_cosine_table(std::integer_sequence) { return std::array{ u32((1.0 / cos(atan(double(Values) / double(sizeof...(Values) - 1)))) * 0x10000000 + 0.5)... }; } static constexpr bool is_opaque(float alpha) { return (alpha >= (NoDestRead ? 0.5f : 1.0f)); } static constexpr bool is_transparent(float alpha) { return (alpha < (NoDestRead ? 0.5f : 0.0001f)); } static rgb_t apply_intensity(int intensity, rgb_t color) { return color.scale8(intensity); } @@ -430,7 +430,7 @@ private: static void draw_line(render_primitive const &prim, PixelType *dstdata, s32 width, s32 height, u32 pitch) { // internal cosine table generated at compile time - static constexpr auto s_cosine_table = make_cosine_table(std::make_integer_sequence()); + static auto const s_cosine_table = make_cosine_table(std::make_integer_sequence()); // compute the start/end coordinates int x1 = int(prim.bounds.x0 * 65536.0f); -- cgit v1.2.3