• Ell's avatar
    Issue #3781 - Display artifacts on HiDPI when render cache is invalidated · d710e96d
    Ell authored
    In GimpDisplayShell, scale the render cache by the window's scale
    factor, and render its content in device pixels, instead of scaled
    application pixels.  When painting the cache to the screen, unscale
    the cairo context by the same factor, so that it's painted in the
    native resolution.  Note that the various
    gimp_display_shell_render_foo() functions still speak in
    application pixels, and the scaling happens internally in
    gimp_display_shell_render().
    
    Aside from rendering at native resolution on HiDPI, this also fixes
    an issue where grid-like display artifacts would appear when the
    render cache was not fully validated due to the non-native scaling.
    d710e96d
Name
Last commit
Last update
..
.gitignore Loading commit data...
Makefile.am Loading commit data...
display-enums.c Loading commit data...
display-enums.h Loading commit data...
display-types.h Loading commit data...
gimpcanvas-style.c Loading commit data...
gimpcanvas-style.h Loading commit data...
gimpcanvas.c Loading commit data...
gimpcanvas.h Loading commit data...
gimpcanvasarc.c Loading commit data...
gimpcanvasarc.h Loading commit data...
gimpcanvasboundary.c Loading commit data...
gimpcanvasboundary.h Loading commit data...
gimpcanvasbufferpreview.c Loading commit data...
gimpcanvasbufferpreview.h Loading commit data...
gimpcanvascanvasboundary.c Loading commit data...
gimpcanvascanvasboundary.h Loading commit data...
gimpcanvascorner.c Loading commit data...
gimpcanvascorner.h Loading commit data...
gimpcanvascursor.c Loading commit data...
gimpcanvascursor.h Loading commit data...
gimpcanvasgrid.c Loading commit data...
gimpcanvasgrid.h Loading commit data...
gimpcanvasgroup.c Loading commit data...
gimpcanvasgroup.h Loading commit data...
gimpcanvasguide.c Loading commit data...
gimpcanvasguide.h Loading commit data...
gimpcanvashandle.c Loading commit data...
gimpcanvashandle.h Loading commit data...
gimpcanvasitem-utils.c Loading commit data...
gimpcanvasitem-utils.h Loading commit data...
gimpcanvasitem.c Loading commit data...
gimpcanvasitem.h Loading commit data...
gimpcanvaslayerboundary.c Loading commit data...
gimpcanvaslayerboundary.h Loading commit data...
gimpcanvasline.c Loading commit data...
gimpcanvasline.h Loading commit data...
gimpcanvaspassepartout.c Loading commit data...
gimpcanvaspassepartout.h Loading commit data...
gimpcanvaspath.c Loading commit data...
gimpcanvaspath.h Loading commit data...
gimpcanvaspen.c Loading commit data...
gimpcanvaspen.h Loading commit data...
gimpcanvaspolygon.c Loading commit data...
gimpcanvaspolygon.h Loading commit data...
gimpcanvasprogress.c Loading commit data...
gimpcanvasprogress.h Loading commit data...
gimpcanvasproxygroup.c Loading commit data...
gimpcanvasproxygroup.h Loading commit data...
gimpcanvasrectangle.c Loading commit data...
gimpcanvasrectangle.h Loading commit data...
gimpcanvasrectangleguides.c Loading commit data...
gimpcanvasrectangleguides.h Loading commit data...
gimpcanvassamplepoint.c Loading commit data...
gimpcanvassamplepoint.h Loading commit data...
gimpcanvastextcursor.c Loading commit data...
gimpcanvastextcursor.h Loading commit data...
gimpcanvastransformguides.c Loading commit data...
gimpcanvastransformguides.h Loading commit data...
gimpcanvastransformpreview.c Loading commit data...
gimpcanvastransformpreview.h Loading commit data...
gimpcursorview.c Loading commit data...
gimpcursorview.h Loading commit data...
gimpdisplay-foreach.c Loading commit data...
gimpdisplay-foreach.h Loading commit data...
gimpdisplay-handlers.c Loading commit data...
gimpdisplay-handlers.h Loading commit data...
gimpdisplay.c Loading commit data...
gimpdisplay.h Loading commit data...
gimpdisplayshell-actions.c Loading commit data...
gimpdisplayshell-actions.h Loading commit data...
gimpdisplayshell-appearance.c Loading commit data...
gimpdisplayshell-appearance.h Loading commit data...
gimpdisplayshell-autoscroll.c Loading commit data...
gimpdisplayshell-autoscroll.h Loading commit data...
gimpdisplayshell-callbacks.c Loading commit data...
gimpdisplayshell-callbacks.h Loading commit data...
gimpdisplayshell-close.c Loading commit data...
gimpdisplayshell-close.h Loading commit data...
gimpdisplayshell-cursor.c Loading commit data...
gimpdisplayshell-cursor.h Loading commit data...
gimpdisplayshell-dnd.c Loading commit data...
gimpdisplayshell-dnd.h Loading commit data...
gimpdisplayshell-draw.c Loading commit data...
gimpdisplayshell-draw.h Loading commit data...
gimpdisplayshell-expose.c Loading commit data...
gimpdisplayshell-expose.h Loading commit data...
gimpdisplayshell-filter-dialog.c Loading commit data...
gimpdisplayshell-filter-dialog.h Loading commit data...
gimpdisplayshell-filter.c Loading commit data...
gimpdisplayshell-filter.h Loading commit data...
gimpdisplayshell-grab.c Loading commit data...
gimpdisplayshell-grab.h Loading commit data...
gimpdisplayshell-handlers.c Loading commit data...
gimpdisplayshell-handlers.h Loading commit data...
gimpdisplayshell-icon.c Loading commit data...
gimpdisplayshell-icon.h Loading commit data...
gimpdisplayshell-items.c Loading commit data...
gimpdisplayshell-items.h Loading commit data...
gimpdisplayshell-layer-select.c Loading commit data...
gimpdisplayshell-layer-select.h Loading commit data...
gimpdisplayshell-profile.c Loading commit data...
gimpdisplayshell-profile.h Loading commit data...
gimpdisplayshell-progress.c Loading commit data...
gimpdisplayshell-progress.h Loading commit data...
gimpdisplayshell-render.c Loading commit data...
gimpdisplayshell-render.h Loading commit data...
gimpdisplayshell-rotate-dialog.c Loading commit data...
gimpdisplayshell-rotate-dialog.h Loading commit data...
gimpdisplayshell-rotate.c Loading commit data...
gimpdisplayshell-rotate.h Loading commit data...
gimpdisplayshell-rulers.c Loading commit data...
gimpdisplayshell-rulers.h Loading commit data...
gimpdisplayshell-scale-dialog.c Loading commit data...
gimpdisplayshell-scale-dialog.h Loading commit data...
gimpdisplayshell-scale.c Loading commit data...
gimpdisplayshell-scale.h Loading commit data...
gimpdisplayshell-scroll.c Loading commit data...
gimpdisplayshell-scroll.h Loading commit data...
gimpdisplayshell-scrollbars.c Loading commit data...
gimpdisplayshell-scrollbars.h Loading commit data...
gimpdisplayshell-selection.c Loading commit data...
gimpdisplayshell-selection.h Loading commit data...
gimpdisplayshell-title.c Loading commit data...
gimpdisplayshell-title.h Loading commit data...
gimpdisplayshell-tool-events.c Loading commit data...
gimpdisplayshell-tool-events.h Loading commit data...
gimpdisplayshell-transform.c Loading commit data...
gimpdisplayshell-transform.h Loading commit data...
gimpdisplayshell-utils.c Loading commit data...
gimpdisplayshell-utils.h Loading commit data...
gimpdisplayshell.c Loading commit data...
gimpdisplayshell.h Loading commit data...
gimpimagewindow.c Loading commit data...
gimpimagewindow.h Loading commit data...
gimpmotionbuffer.c Loading commit data...
gimpmotionbuffer.h Loading commit data...
gimpmultiwindowstrategy.c Loading commit data...
gimpmultiwindowstrategy.h Loading commit data...
gimpnavigationeditor.c Loading commit data...
gimpnavigationeditor.h Loading commit data...
gimpscalecombobox.c Loading commit data...
gimpscalecombobox.h Loading commit data...
gimpsinglewindowstrategy.c Loading commit data...
gimpsinglewindowstrategy.h Loading commit data...
gimpstatusbar.c Loading commit data...
gimpstatusbar.h Loading commit data...
gimptoolcompass.c Loading commit data...
gimptoolcompass.h Loading commit data...
gimptooldialog.c Loading commit data...
gimptooldialog.h Loading commit data...
gimptoolgui.c Loading commit data...
gimptoolgui.h Loading commit data...
gimptoolgyroscope.c Loading commit data...
gimptoolgyroscope.h Loading commit data...
gimptoolhandlegrid.c Loading commit data...
gimptoolhandlegrid.h Loading commit data...
gimptoolline.c Loading commit data...
gimptoolline.h Loading commit data...
gimptoolpath.c Loading commit data...
gimptoolpath.h Loading commit data...
gimptoolpolygon.c Loading commit data...
gimptoolpolygon.h Loading commit data...
gimptoolrectangle.c Loading commit data...
gimptoolrectangle.h Loading commit data...
gimptoolrotategrid.c Loading commit data...
gimptoolrotategrid.h Loading commit data...
gimptoolsheargrid.c Loading commit data...
gimptoolsheargrid.h Loading commit data...
gimptooltransformgrid.c Loading commit data...
gimptooltransformgrid.h Loading commit data...
gimptoolwidget.c Loading commit data...
gimptoolwidget.h Loading commit data...
gimptoolwidgetgroup.c Loading commit data...
gimptoolwidgetgroup.h Loading commit data...
meson.build Loading commit data...