Skip to content

Commit

Permalink
(#3259) buffer size should be the possibly-inverted extents size so t…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Apr 3, 2024
1 parent 4373f4d commit 6a7c962
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/server/frontend_wayland/wlr_screencopy_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ void mf::WlrScreencopyManagerV1::capture_output(
(void)overlay_cursor;
auto const& output_config = OutputGlobal::from_or_throw(output).current_config();
auto const extents = output_config.extents();
auto const buffer_size = output_config.modes[output_config.current_mode_index].size;
new WlrScreencopyFrameV1{frame, this, ctx, {output, extents, buffer_size}};
new WlrScreencopyFrameV1{frame, this, ctx, {output, extents, extents.size}};
}

void mf::WlrScreencopyManagerV1::capture_output_region(
Expand All @@ -393,8 +392,7 @@ void mf::WlrScreencopyManagerV1::capture_output_region(
auto const& output_config = OutputGlobal::from_or_throw(output).current_config();
auto const extents = output_config.extents();
auto const intersection = intersection_of({{x, y}, {width, height}}, extents);
auto const output_size = output_config.modes[output_config.current_mode_index].size;
auto const buffer_size = translate_and_scale(intersection, extents, {{}, output_size}).size;
auto const buffer_size = translate_and_scale(intersection, extents, {{}, extents.size}).size;
new WlrScreencopyFrameV1{frame, this, ctx, {output, intersection, buffer_size}};
}

Expand Down

0 comments on commit 6a7c962

Please sign in to comment.