mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Make github code scanner happy
This commit is contained in:
parent
81e99f46f1
commit
47f2c804de
2 changed files with 2 additions and 2 deletions
|
|
@ -189,7 +189,7 @@ send_bgimage_to_gpu(BackgroundImageLayout layout, BackgroundImage *bgimage) {
|
|||
r = REPEAT_DEFAULT; break;
|
||||
}
|
||||
bgimage->texture_id = 0;
|
||||
size_t delta = bgimage->mmap_size ? bgimage->mmap_size - bgimage->width * bgimage->height * 4 : 0;
|
||||
size_t delta = bgimage->mmap_size ? bgimage->mmap_size - ((size_t)4) * bgimage->width * bgimage->height : 0;
|
||||
send_image_to_gpu(&bgimage->texture_id, bgimage->bitmap + delta, bgimage->width,
|
||||
bgimage->height, false, true, OPT(background_image_linear), r);
|
||||
free_bgimage_bitmap(bgimage);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ free_window_logo(WindowLogoItem **itemref) {
|
|||
|
||||
static void
|
||||
send_logo_to_gpu(WindowLogo *s) {
|
||||
size_t off = s->mmap_size ? s->mmap_size - 4 * s->width * s->height : 0;
|
||||
size_t off = s->mmap_size ? s->mmap_size - ((size_t)4) * s->width * s->height : 0;
|
||||
send_image_to_gpu(&s->texture_id, s->bitmap + off, s->width, s->height, false, true, true, REPEAT_CLAMP);
|
||||
free_window_logo_bitmap(s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue