feat - updating icons and glyphs, added claude code subscription integration
This commit is contained in:
@@ -74,7 +74,7 @@ pub fn capture_frame(
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) fn convert_bgra_to_rgba(data: &mut [u8]) {
|
||||
for chunk in data.chunks_exact_mut(4) {
|
||||
for chunk in data.as_chunks_mut::<4>().0 {
|
||||
chunk.swap(0, 2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -934,7 +934,9 @@ fn caret_positions_for_line(
|
||||
// edges and RTL text.
|
||||
positions.sort_unstable_by_key(|position| position.utf16_index);
|
||||
let mut carets: Vec<_> = positions
|
||||
.chunks_exact(2)
|
||||
.as_chunks::<2>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|edges| {
|
||||
// Guaranteed by chunks_exact that there are 2 elements.
|
||||
let first = &edges[0];
|
||||
|
||||
@@ -265,7 +265,7 @@ fn capture_surface_texture(
|
||||
staging_buffer.unmap();
|
||||
|
||||
if format == wgpu::TextureFormat::Bgra8Unorm || format == wgpu::TextureFormat::Bgra8UnormSrgb {
|
||||
for chunk in rgba_data.chunks_exact_mut(4) {
|
||||
for chunk in rgba_data.as_chunks_mut::<4>().0 {
|
||||
chunk.swap(0, 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user