[gtk+/gtk-3-18] gdk_pixbuf_get_from_window: honor device scale



commit 088d3449cabfce1529c42c0ed0cdfceedd350912
Author: Lars Uebernickel <lars uebernickel canonical com>
Date:   Mon Oct 26 10:12:34 2015 +0100

    gdk_pixbuf_get_from_window: honor device scale
    
    gdk_pixbuf_get_from_window() paints the given window onto a new cairo
    surface. Create that new surface with the same device scale as the
    window so that the result is not scaled down on hidpi screens.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757147

 gdk/gdkpixbuf-drawable.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c
index 0647e3c..2e3de8c 100644
--- a/gdk/gdkpixbuf-drawable.c
+++ b/gdk/gdkpixbuf-drawable.c
@@ -119,7 +119,6 @@ gdk_cairo_format_for_content (cairo_content_t content)
     {
     case CAIRO_CONTENT_COLOR:
       return CAIRO_FORMAT_RGB24;
-    case CAIRO_CONTENT_ALPHA:
       return CAIRO_FORMAT_A8;
     case CAIRO_CONTENT_COLOR_ALPHA:
     default:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]