From 77f363f7376b071087e95696f847685dfbe8d848 Mon Sep 17 00:00:00 2001 From: Prokhorov Kirill Date: Tue, 27 May 2025 02:04:54 +0300 Subject: [PATCH] add operator == and != in agg::rgba8 --- DesktopEditor/agg-2.4/include/agg_color_rgba.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/DesktopEditor/agg-2.4/include/agg_color_rgba.h b/DesktopEditor/agg-2.4/include/agg_color_rgba.h index db1cb4f666..5baa97399e 100644 --- a/DesktopEditor/agg-2.4/include/agg_color_rgba.h +++ b/DesktopEditor/agg-2.4/include/agg_color_rgba.h @@ -416,6 +416,16 @@ namespace agg { return self_type(rgba::from_wavelength(wl, gamma)); } + + bool operator==(const self_type& other) + { + return a == other.a && r == other.r && g == other.g && b == other.b; + } + + bool operator!=(const self_type& other) + { + return !operator==(other); + } };