Properly use rgba32f_pixel_t

This commit is contained in:
Dan Paulat 2024-07-14 00:10:22 -05:00
parent c7023f9cd2
commit 7659ef0906
3 changed files with 23 additions and 4 deletions

View file

@ -118,7 +118,7 @@ public:
{
lineColor_.emplace(
alertActive,
util::color::ToRgba8PixelT(
util::color::ToRgba32fPixelT(
paletteSettings.alert_color(phenomenon_, alertActive)
.GetValue()));
}
@ -144,7 +144,7 @@ public:
static void
AddLines(std::shared_ptr<gl::draw::GeoLines>& geoLines,
const std::vector<common::Coordinate>& coordinates,
boost::gil::rgba32_pixel_t color,
boost::gil::rgba32f_pixel_t color,
float width,
std::chrono::system_clock::time_point startTime,
std::chrono::system_clock::time_point endTime,
@ -156,7 +156,7 @@ public:
std::unordered_map<bool, std::shared_ptr<gl::draw::GeoLines>> geoLines_;
std::unordered_map<bool, boost::gil::rgba8_pixel_t> lineColor_;
std::unordered_map<bool, boost::gil::rgba32f_pixel_t> lineColor_;
std::chrono::system_clock::time_point selectedTime_ {};
};
@ -358,7 +358,7 @@ void AlertLayer::Impl::UpdateAlert(
void AlertLayer::Impl::AddLines(
std::shared_ptr<gl::draw::GeoLines>& geoLines,
const std::vector<common::Coordinate>& coordinates,
boost::gil::rgba32_pixel_t color,
boost::gil::rgba32f_pixel_t color,
float width,
std::chrono::system_clock::time_point startTime,
std::chrono::system_clock::time_point endTime,