From 4fedc59f291c3e887bd3edb068be776eeeb6a317 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 3 Apr 2023 20:00:45 -0300 Subject: [PATCH] Fix render_tests setting the new BgOptions::colorPixelFormat field --- src/render/LICENSE.txt | 2 +- src/render/render_tests.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/render/LICENSE.txt b/src/render/LICENSE.txt index 28e9e02a2..2f96c9d74 100644 --- a/src/render/LICENSE.txt +++ b/src/render/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2019-2020 Igara Studio S.A. +Copyright (c) 2019-2023 Igara Studio S.A. Copyright (c) 2001-2018 David Capello Permission is hereby granted, free of charge, to any person obtaining diff --git a/src/render/render_tests.cpp b/src/render/render_tests.cpp index 539444939..351793e6a 100644 --- a/src/render/render_tests.cpp +++ b/src/render/render_tests.cpp @@ -1,5 +1,5 @@ // Aseprite Document Library -// Copyright (c) 2019-2022 Igara Studio S.A. +// Copyright (c) 2019-2023 Igara Studio S.A. // Copyright (c) 2001-2018 David Capello // // This file is released under the terms of the MIT license. @@ -143,6 +143,7 @@ TEST(Render, CheckeredBackground) BgOptions bg; bg.type = BgType::CHECKERED; bg.zoom = true; + bg.colorPixelFormat = IMAGE_INDEXED; bg.color1 = 1; bg.color2 = 2; @@ -203,6 +204,7 @@ TEST(Render, ZoomAndDstBounds) BgOptions bg; bg.type = BgType::CHECKERED; bg.zoom = true; + bg.colorPixelFormat = IMAGE_INDEXED; bg.color1 = 1; bg.color2 = 2; bg.stripeSize = gfx::Size(1, 1); @@ -238,6 +240,7 @@ TEST(Render, BugWithMultiplesOf3ZoomFactors) BgOptions bg; bg.type = BgType::CHECKERED; bg.zoom = false; + bg.colorPixelFormat = IMAGE_RGB; bg.color1 = rgba(128, 128, 128, 255); bg.color2 = rgba(64, 64, 64, 255); bg.stripeSize = gfx::Size(2, 2);