diff --git a/repos/gems/src/app/backdrop/main.cc b/repos/gems/src/app/backdrop/main.cc index 84fe8b4556..c8c12e6178 100644 --- a/repos/gems/src/app/backdrop/main.cc +++ b/repos/gems/src/app/backdrop/main.cc @@ -244,7 +244,7 @@ void Backdrop::Main::apply_image(Xml_node operation) Anchor anchor(operation); - Png_image png_image(file.data()); + Png_image png_image(env.ram(), env.rm(), heap, file.data()); Area const scaled_size = calc_scaled_size(operation, png_image.size(), Area(buffer->mode.width(), @@ -277,8 +277,8 @@ void Backdrop::Main::apply_image(Xml_node operation) Texture *png_texture = png_image.texture(); /* create texture with the scaled image */ - Chunky_texture scaled_texture(env.ram(), scaled_size); - scale(*png_texture, scaled_texture); + Chunky_texture scaled_texture(env.ram(), env.rm(), scaled_size); + scale(*png_texture, scaled_texture, heap); png_image.release_texture(png_texture); @@ -288,8 +288,8 @@ void Backdrop::Main::apply_image(Xml_node operation) /* create texture with down-sampled scaled image */ typedef Pixel_rgb565 PT; - Chunky_texture texture(env.ram(), scaled_size); - convert_pixel_format(scaled_texture, texture, alpha); + Chunky_texture texture(env.ram(), env.rm(), scaled_size); + convert_pixel_format(scaled_texture, texture, alpha, heap); /* paint texture onto surface */ Surface surface = buffer->surface();