summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-12 11:42:19 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-08-12 11:43:07 +0300
commit6927e751ddd7c833f71ad7376ec055ff40bf82a7 (patch)
tree18ba6a8a876ee89c21e1a7b2fd2219cc30c54088 /utils
parentcdab6faf18b5f2b9964476673cd6d6bc87b264ba (diff)
ExtCPUFramebuffer: add size and offset params
Add size and offset params to ExtCPUFramebuffer, so that we can fix fbtestpat's test pattern size on larger virtual fbdevs.
Diffstat (limited to 'utils')
-rw-r--r--utils/fbtestpat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/fbtestpat.cpp b/utils/fbtestpat.cpp
index 6216c04..1c9a5f1 100644
--- a/utils/fbtestpat.cpp
+++ b/utils/fbtestpat.cpp
@@ -40,7 +40,8 @@ int main(int argc, char** argv)
FAIL_IF(ptr == MAP_FAILED, "mmap failed");
- ExtCPUFramebuffer buf(var.xres, var.yres_virtual, PixelFormat::XRGB8888, ptr, fix.line_length);
+ ExtCPUFramebuffer buf(var.xres, var.yres, PixelFormat::XRGB8888,
+ ptr, var.yres_virtual * fix.line_length, fix.line_length, 0);
printf("%s: res %dx%d, virtual %dx%d, line_len %d\n",
fbdev,