Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b8bef64 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

PixelFormat.UNKNOWN should return an error when queried

Bug: 6294260
Change-Id: Iad6f7bcbdda0a684abca6d9584da611a8b28f7ab
parent efc7ab6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ ssize_t bitsPerPixel(PixelFormat format)

status_t getPixelFormatInfo(PixelFormat format, PixelFormatInfo* info)
{
    if (format < 0)
    if (format <= 0)
        return BAD_VALUE;

    if (info->version != sizeof(PixelFormatInfo))