Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcaca: remove need for compiler blacklist
See: cacalabs/libcaca#59
- Loading branch information
1 parent
d17ec0f
commit d8cc25e
Showing
3 changed files
with
15 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
_caca_alloc2d is an internal function and not exported to | ||
the image viewer. It is basically a glorified call to malloc. | ||
|
||
--- src/common-image.c.orig 2021-11-06 10:15:28.000000000 -0400 | ||
+++ src/common-image.c 2021-11-06 10:15:59.000000000 -0400 | ||
@@ -161,7 +161,7 @@ | ||
uint32_t depth = (bpp + 7) / 8; | ||
|
||
/* Allocate the pixel buffer */ | ||
- im->pixels = _caca_alloc2d(im->w, im->h, depth); | ||
+ im->pixels = malloc(im->w * im->h * depth); | ||
if (!im->pixels) | ||
{ | ||
caca_file_close(f); |