mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 22:55:04 -06:00
overlays: Use ellipse SDF for circles
This commit is contained in:
parent
45bae0046a
commit
57e37862f4
@ -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>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user