Commit 37a66200 authored by Ell's avatar Ell

app: don't upscale preallocated display buffers by GIMP_DISPLAY_RENDER_MAX_SCALE

After commit 8029508f, we always
render the image in chunks that are at most
GIMP_DISPLAY_RENDER_BUF_WIDTH x GIMP_DISPLAY_RENDER_BUF_HEIGHT,
even when the window's scale factor is > 1.
parent 09e1c7f9
......@@ -159,8 +159,8 @@ gimp_display_shell_profile_update (GimpDisplayShell *shell)
if (shell->filter_transform || shell->profile_transform)
{
gint w = GIMP_DISPLAY_RENDER_BUF_WIDTH * GIMP_DISPLAY_RENDER_MAX_SCALE;
gint h = GIMP_DISPLAY_RENDER_BUF_HEIGHT * GIMP_DISPLAY_RENDER_MAX_SCALE;
gint w = GIMP_DISPLAY_RENDER_BUF_WIDTH;
gint h = GIMP_DISPLAY_RENDER_BUF_HEIGHT;
shell->profile_data =
gegl_malloc (w * h * babl_format_get_bytes_per_pixel (src_format));
......
......@@ -236,8 +236,8 @@ gimp_display_xfer_realize (GtkWidget *widget)
if (xfer == NULL)
{
cairo_t *cr;
gint w = GIMP_DISPLAY_RENDER_BUF_WIDTH * GIMP_DISPLAY_RENDER_MAX_SCALE;
gint h = GIMP_DISPLAY_RENDER_BUF_HEIGHT * GIMP_DISPLAY_RENDER_MAX_SCALE;
gint w = GIMP_DISPLAY_RENDER_BUF_WIDTH;
gint h = GIMP_DISPLAY_RENDER_BUF_HEIGHT;
int n;
xfer = g_new (GimpDisplayXfer, 1);
......@@ -271,8 +271,8 @@ gimp_display_xfer_get_surface (GimpDisplayXfer *xfer,
{
RTreeNode *node;
g_assert (w <= GIMP_DISPLAY_RENDER_BUF_WIDTH * GIMP_DISPLAY_RENDER_MAX_SCALE &&
h <= GIMP_DISPLAY_RENDER_BUF_HEIGHT * GIMP_DISPLAY_RENDER_MAX_SCALE);
g_assert (w <= GIMP_DISPLAY_RENDER_BUF_WIDTH &&
h <= GIMP_DISPLAY_RENDER_BUF_HEIGHT);
node = rtree_insert (&xfer->rtree, w, h);
if (node == NULL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment