mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-27 21:00:14 +01:00
tests/util: fix signed/unsigned comparisons
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
80f33f4529
commit
256cdc02a8
1 changed files with 2 additions and 3 deletions
|
|
@ -549,7 +549,6 @@ static void make_pwetty(void *data, unsigned int width, unsigned int height,
|
|||
#ifdef HAVE_CAIRO
|
||||
cairo_surface_t *surface;
|
||||
cairo_t *cr;
|
||||
int x, y;
|
||||
cairo_format_t cairo_format;
|
||||
|
||||
/* we can ignore the order of R,G,B channels */
|
||||
|
|
@ -576,8 +575,8 @@ static void make_pwetty(void *data, unsigned int width, unsigned int height,
|
|||
cairo_surface_destroy(surface);
|
||||
|
||||
cairo_set_line_cap(cr, CAIRO_LINE_CAP_SQUARE);
|
||||
for (x = 0; x < width; x += 250)
|
||||
for (y = 0; y < height; y += 250) {
|
||||
for (unsigned x = 0; x < width; x += 250)
|
||||
for (unsigned y = 0; y < height; y += 250) {
|
||||
char buf[64];
|
||||
|
||||
cairo_move_to(cr, x, y - 20);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue