MSC warnings fixed, CtrlLib: .lay UNTYPED now without properties

This commit is contained in:
Mirek Fidler 2022-05-14 08:47:02 +02:00
parent 76cc33f2f1
commit 6a86f2ac03
8 changed files with 42 additions and 37 deletions

View file

@ -353,7 +353,7 @@ uint64 Image::GetAuxData() const
return data ? data->aux_data : 0;
}
static void sMultiply(ImageBuffer& b, int (*op)(RGBA *t, const RGBA *s, int len))
static void sMultiply(ImageBuffer& b, int (*op)(RGBA *t, const RGBA *s, size_t len))
{
if(b.GetKind() != IMAGE_OPAQUE && b.GetKind() != IMAGE_EMPTY)
(*op)(~b, ~b, b.GetLength());
@ -369,7 +369,7 @@ void Unmultiply(ImageBuffer& b)
sMultiply(b, Unmultiply);
}
static Image sMultiply(const Image& img, int (*op)(RGBA *t, const RGBA *s, int len))
static Image sMultiply(const Image& img, int (*op)(RGBA *t, const RGBA *s, size_t len))
{
int k = img.GetKind();
if(k == IMAGE_OPAQUE || k == IMAGE_EMPTY)