plug-ins: Allocate more space for 4bpp TIM textures
Resolves #16052 Per mzfr, the pixel array for 4bpp TIM textures needs to be allocated twice as large since each byte in the file stores two pixel indexes when opened.
This commit is contained in:
parent
e0bd82f290
commit
b6d43ec0fe
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ load_image (GFile *file,
|
|||
|
||||
for (gint i = 0; i < height; i++)
|
||||
{
|
||||
guchar row[width];
|
||||
guchar row[width * 2];
|
||||
|
||||
fread (&pixels, width, 1, fp);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue