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

Commit db7ecbe6 authored by Robert Carr's avatar Robert Carr
Browse files

Correct Screencap utility code.

Screenshot interface now takes signed parameters.

Bug: 34758075
Test: None
Change-Id: I884456ce7f22a9e57990371ad66f6bb55d09e999
parent cb07efbf
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -162,7 +162,9 @@ int main(int argc, char** argv)
    uint8_t displayOrientation = configs[activeConfig].orientation;
    uint32_t captureOrientation = ORIENTATION_MAP[displayOrientation];

    status_t result = screenshot.update(display, Rect(), 0, 0, 0, -1U,
    status_t result = screenshot.update(display, Rect(),
            0 /* reqWidth */, 0 /* reqHeight */,
            INT32_MIN, INT32_MAX, /* all layers */
            false, captureOrientation);
    if (result == NO_ERROR) {
        base = screenshot.getPixels();