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

Commit a79fd4ca authored by Mathias Agopian's avatar Mathias Agopian
Browse files

use the bitmap stride when encoding a screenshot as PNG

Bug: 8444808
Change-Id: I47b74c22c940b40bd02634e9cd9dbff39b29a99f
parent 9eac5269
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ int main(int argc, char** argv)
    if (base) {
        if (png) {
            SkBitmap b;
            b.setConfig(flinger2skia(f), w, h);
            b.setConfig(flinger2skia(f), w, h, s*bytesPerPixel(f));
            b.setPixels((void*)base);
            SkDynamicMemoryWStream stream;
            SkImageEncoder::EncodeStream(&stream, b,