Hi,
on line 62 you need to set the resolution of your screen, mine is
surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,640,480);
Then the scale line should be something similar to:
cairo_scale(cr, 5, 7.5);
where 5 = 640/128
(x = device res width/original cairo surface width)
and 7.5 = 480/64
(x = device res height/original cairo surface height)