projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
backported imago from eradicate
[dosdemo]
/
libs
/
imago
/
src
/
imago2.c
diff --git
a/libs/imago/src/imago2.c
b/libs/imago/src/imago2.c
index
30782dc
..
65c554d
100644
(file)
--- a/
libs/imago/src/imago2.c
+++ b/
libs/imago/src/imago2.c
@@
-419,6
+419,7
@@
static int pixel_size(enum img_fmt fmt)
case IMG_FMT_RGB24:
return 3;
case IMG_FMT_RGBA32:
case IMG_FMT_RGB24:
return 3;
case IMG_FMT_RGBA32:
+ case IMG_FMT_BGRA32:
return 4;
case IMG_FMT_GREYF:
return sizeof(float);
return 4;
case IMG_FMT_GREYF:
return sizeof(float);
@@
-426,6
+427,8
@@
static int pixel_size(enum img_fmt fmt)
return 3 * sizeof(float);
case IMG_FMT_RGBAF:
return 4 * sizeof(float);
return 3 * sizeof(float);
case IMG_FMT_RGBAF:
return 4 * sizeof(float);
+ case IMG_FMT_RGB565:
+ return 2;
default:
break;
}
default:
break;
}