From 72439e2074e7b9486cc6899b8691f357a1716e6c Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 16 Jul 2010 11:56:11 +0000 Subject: [PATCH] Obviously, just checking for the text color isn't enough. Also renamed colors to schema since it makes more sense git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37536 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/Colors.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/apps/terminal/Colors.cpp b/src/apps/terminal/Colors.cpp index 0ec56f7d6c..6669fcec42 100644 --- a/src/apps/terminal/Colors.cpp +++ b/src/apps/terminal/Colors.cpp @@ -42,10 +42,14 @@ const color_schema *gPredefinedSchemas[] = { bool -color_schema::operator==(const color_schema &color) +color_schema::operator==(const color_schema &schema) { - if (text_fore_color == color.text_fore_color - && text_back_color == color.text_back_color) + if (text_fore_color == schema.text_fore_color + && text_back_color == schema.text_back_color + && cursor_fore_color == schema.cursor_fore_color + && cursor_back_color == schema.cursor_back_color + && select_fore_color == schema.select_fore_color + && select_back_color == schema.select_back_color) return true; return false;