Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cairo_surface_t *image;
- double scale = cairo_image_get_surface_height(image) / window->height;
- // Scale here
- cairo_set_source_surface(cairo, image, 0, 0);
- cairo_paint(cairo);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement