Skip to content

Commit 45fe2c4

Browse files
committed
Update orbital.rs
1 parent 9a84cdb commit 45fe2c4

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

src/backends/orbital.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fn set_buffer(
230230
window_fd: usize,
231231
buffer: &[Pixel],
232232
width_u32: u32,
233-
height_u32: u32,
233+
_height_u32: u32,
234234
damage: &[Rect],
235235
) {
236236
// Read the current width and size
@@ -258,15 +258,13 @@ fn set_buffer(
258258
let w = (urect.width.get() as usize).min(window_width.saturating_sub(x));
259259
let h = (urect.height.get() as usize).min(window_height.saturating_sub(y));
260260

261-
if let Some(urect) = util::union_damage(damage) {
262-
for (src_row, dst_row) in buffer
263-
.chunks_exact(width)
264-
.zip(window_data.chunks_exact_mut(window_width))
265-
.skip(y)
266-
.take(h)
267-
{
268-
dst_row[x..x + w].copy_from_slice(&src_row[x..x + w]);
269-
}
261+
for (src_row, dst_row) in buffer
262+
.chunks_exact(width)
263+
.zip(window_data.chunks_exact_mut(window_width))
264+
.skip(y)
265+
.take(h)
266+
{
267+
dst_row[x..x + w].copy_from_slice(&src_row[x..x + w]);
270268
}
271269

272270
// Window buffer map is dropped here

0 commit comments

Comments
 (0)