Update cosmic-text to allow for line selection

This commit is contained in:
Jeremy Soller 2023-11-28 10:45:40 -07:00
parent 94fe82f38e
commit 3ba99aaab5
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
3 changed files with 155 additions and 70 deletions

View file

@ -350,7 +350,16 @@ where
image_color |= (color.0 & 0x00FF0000) >> 16;
// Shift blue channel
image_color |= (color.0 & 0x000000FF) << 16;
draw_rect(buffer, image_w, image_h, x, y, w as i32, h as i32, image_color);
draw_rect(
buffer,
image_w,
image_h,
x,
y,
w as i32,
h as i32,
image_color,
);
},
);