所有权添加完成
This commit is contained in:
@@ -110,7 +110,8 @@ void Selection_Rectangle_Overlay_Control::publish() {
|
||||
impl_->interaction.publish();
|
||||
}
|
||||
void Selection_Rectangle_Overlay_Control::prepare_frame(
|
||||
const Render_State_View& view, const Scene_Render_Context&) {
|
||||
const Prepare_Render_Context& context) {
|
||||
const auto& view = context.frame.render_state;
|
||||
const auto& state = render_properties(view);
|
||||
const auto& interaction = view.get(impl_->interaction);
|
||||
const auto horizontal = impl_->horizontal_axis->transform(view);
|
||||
@@ -133,9 +134,9 @@ void Selection_Rectangle_Overlay_Control::prepare_frame(
|
||||
interaction.selection_current.y - interaction.selection_start.y};
|
||||
}
|
||||
void Selection_Rectangle_Overlay_Control::paint(
|
||||
Painter& painter, const Scene_Render_Context&) {
|
||||
Painter& painter, const Paint_Render_Context& context) {
|
||||
const auto& output = impl_->prepare_buffer;
|
||||
const auto view = render_state_view();
|
||||
const auto& view = context.frame.render_state;
|
||||
const auto& state = render_properties(view);
|
||||
for (const auto& region : output.regions) {
|
||||
painter.rect(region.pixels, state.selection_border_pen,
|
||||
|
||||
Reference in New Issue
Block a user