overlays: Use ellipse SDF for circles
This commit is contained in:
@@ -99,7 +99,7 @@ namespace rsx::overlays
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto ellipse_part = std::make_unique<rounded_rect>();
|
auto ellipse_part = std::make_unique<rounded_rect>();
|
||||||
auto circle_part = std::make_unique<rounded_rect>();
|
auto circle_part = std::make_unique<ellipse>();
|
||||||
|
|
||||||
ellipse_part->set_size(dim * 2, dim / 2);
|
ellipse_part->set_size(dim * 2, dim / 2);
|
||||||
ellipse_part->set_pos(0, dim / 4);
|
ellipse_part->set_pos(0, dim / 4);
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace rsx::overlays
|
|||||||
// Base components
|
// Base components
|
||||||
auto background = std::make_unique<rounded_rect>();
|
auto background = std::make_unique<rounded_rect>();
|
||||||
auto foreground = std::make_unique<rounded_rect>();
|
auto foreground = std::make_unique<rounded_rect>();
|
||||||
auto indicator = std::make_unique<rounded_rect>();
|
auto indicator = std::make_unique<ellipse>();
|
||||||
auto value_label = std::make_unique<label>();
|
auto value_label = std::make_unique<label>();
|
||||||
auto min_label = std::make_unique<label>();
|
auto min_label = std::make_unique<label>();
|
||||||
auto max_label = std::make_unique<label>();
|
auto max_label = std::make_unique<label>();
|
||||||
|
|||||||
Reference in New Issue
Block a user