You can think of cairo_scale()
as multiplying all the following coordinates with its argument.
In your case this means you are drawing a line from (0, 0)
to (1/width, 1/height)
which is less than a pixel.
You want to call cairo_scale(cr, WIDTH, HEIGHT)
instead.