mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
kms_rotation_crc: Properly paint the whole frame buffer
The -1 meant we weren't properly filling the whole fb. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
1bcac4dcb3
commit
8767a794bb
@ -70,9 +70,9 @@ paint_squares(data_t *data, struct igt_fb *fb, drmModeModeInfo *mode,
|
||||
|
||||
/* Paint with 4 squares of Red, Green, White, Blue Clockwise */
|
||||
igt_paint_color(cr, 0, 0, w / 2, h / 2, 1.0, 0.0, 0.0);
|
||||
igt_paint_color(cr, (w / 2) - 1, 0, w / 2, h / 2, 0.0, 1.0, 0.0);
|
||||
igt_paint_color(cr, 0, (h / 2) - 1, w / 2, h / 2, 0.0, 0.0, 1.0);
|
||||
igt_paint_color(cr, (w / 2) - 1, (h / 2) - 1, w / 2, h / 2, 1.0, 1.0, 1.0);
|
||||
igt_paint_color(cr, w / 2, 0, w / 2, h / 2, 0.0, 1.0, 0.0);
|
||||
igt_paint_color(cr, 0, h / 2, w / 2, h / 2, 0.0, 0.0, 1.0);
|
||||
igt_paint_color(cr, w / 2, h / 2, w / 2, h / 2, 1.0, 1.0, 1.0);
|
||||
|
||||
cairo_destroy(cr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user