mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 15:56:33 +00:00
flip_test: add cast to pacify Solaris Studio compiler
Fixes build error: "flip_test.c", line 180: improper pointer/integer combination: op "=" Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
6b3e6f28d2
commit
4cdfa8e9b7
@ -177,7 +177,7 @@ static void connector_find_preferred_mode(struct test_output *o, int crtc_id)
|
|||||||
static void
|
static void
|
||||||
paint_flip_mode(cairo_t *cr, int width, int height, void *priv)
|
paint_flip_mode(cairo_t *cr, int width, int height, void *priv)
|
||||||
{
|
{
|
||||||
bool odd_frame = priv;
|
bool odd_frame = (bool) priv;
|
||||||
|
|
||||||
if (odd_frame)
|
if (odd_frame)
|
||||||
cairo_rectangle(cr, width/4, height/2, width/4, height/8);
|
cairo_rectangle(cr, width/4, height/2, width/4, height/8);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user