Skip to content
  • Alexander Larsson's avatar
    GtkIconHelper: Convert to using cairo surfaces as base and support scales · 031e1a98
    Alexander Larsson authored
    We render the source into a cairo_surface_t so that we can render it
    with cairo directly, rather than having to convert it from a pixbuf
    every time. We also specify the target window when creating the cairo
    surface so that rendering can be faster.
    
    Using cairo surfaces also allows us to seamlessly support window scales.
    
    We also add a GTK_IMAGE_SURFACE source type.
    031e1a98