diff options
Diffstat (limited to 'src/osd/modules/render/bgfx/clearreader.cpp')
-rw-r--r-- | src/osd/modules/render/bgfx/clearreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/modules/render/bgfx/clearreader.cpp b/src/osd/modules/render/bgfx/clearreader.cpp index 3cbd714463c..948d96a7393 100644 --- a/src/osd/modules/render/bgfx/clearreader.cpp +++ b/src/osd/modules/render/bgfx/clearreader.cpp @@ -30,7 +30,7 @@ clear_state* clear_reader::read_from_value(const Value& value, std::string prefi for (int i = 0; i < colors.Size(); i++) { if (!READER_CHECK(colors[i].IsNumber(), (prefix + "clearcolor[" + std::to_string(i) + "] must be a numeric value\n").c_str())) return nullptr; - int32_t val = int32_t(float(colors[i].GetDouble()) * 255.0f); + auto val = int32_t(float(colors[i].GetDouble()) * 255.0f); if (val > 255) val = 255; if (val < 0) val = 0; clear_color |= val << (24 - (i * 3)); |