this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

view: fix View widget

+8 -5
+8 -5
src/widgets/View.zig
··· 46 46 return .{ 47 47 .x_off = 0, 48 48 .y_off = 0, 49 + .parent_x_off = 0, 50 + .parent_y_off = 0, 49 51 .width = self.screen.width, 50 52 .height = self.screen.height, 51 53 .screen = &self.screen, ··· 69 71 const width = @min(win.width, self.screen.width - opts.x_off); 70 72 const height = @min(win.height, self.screen.height - opts.y_off); 71 73 72 - for (0..height) |row| { 73 - const src_start = opts.x_off + ((row + opts.y_off) * self.screen.width); 74 - const src_end = src_start + width; 75 - const dst_start = win.x_off + ((row + win.y_off) * win.screen.width); 76 - const dst_end = dst_start + width; 74 + for (0..height) |_row| { 75 + const row: i17 = @intCast(_row); 76 + const src_start: usize = @intCast(opts.x_off + ((row + opts.y_off) * self.screen.width)); 77 + const src_end: usize = @intCast(src_start + width); 78 + const dst_start: usize = @intCast(win.x_off + ((row + win.y_off) * win.screen.width)); 79 + const dst_end: usize = @intCast(dst_start + width); 77 80 @memcpy(win.screen.buf[dst_start..dst_end], self.screen.buf[src_start..src_end]); 78 81 } 79 82 }