[haiku-commits] haiku: hrev44955 - src/apps/terminal

  • From: kallisti5@xxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 4 Dec 2012 17:22:28 +0100 (CET)

hrev44955 adds 1 changeset to branch 'master'
old head: ede21af844389d40efca832b1f49b02a84d77ad8
new head: a2b5d15aef1cb3beaacf33973c1007a237d596f6
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=a2b5d15+%5Eede21af

----------------------------------------------------------------------------

a2b5d15: Terminal: Ensure changing color schema modifies cursor
  
  * Really fixes #8256

                          [ Alexander von Gluck IV <kallisti5@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44955
Commit:      a2b5d15aef1cb3beaacf33973c1007a237d596f6
URL:         http://cgit.haiku-os.org/haiku/commit/?id=a2b5d15
Author:      Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
Date:        Tue Dec  4 16:21:40 2012 UTC

Ticket:      https://dev.haiku-os.org/ticket/8256

----------------------------------------------------------------------------

1 file changed, 4 insertions(+)
src/apps/terminal/AppearPrefView.cpp | 4 ++++

----------------------------------------------------------------------------

diff --git a/src/apps/terminal/AppearPrefView.cpp 
b/src/apps/terminal/AppearPrefView.cpp
index 4f9bcca..79de94c 100644
--- a/src/apps/terminal/AppearPrefView.cpp
+++ b/src/apps/terminal/AppearPrefView.cpp
@@ -374,6 +374,8 @@ AppearancePrefView::_ChangeColorSchema(color_schema* schema)
        pref->setRGB(PREF_TEXT_BACK_COLOR, schema->text_back_color);
        pref->setRGB(PREF_SELECT_FORE_COLOR, schema->select_fore_color);
        pref->setRGB(PREF_SELECT_BACK_COLOR, schema->select_back_color);
+       pref->setRGB(PREF_CURSOR_FORE_COLOR, schema->cursor_fore_color);
+       pref->setRGB(PREF_CURSOR_BACK_COLOR, schema->cursor_back_color);
 }
 
 
@@ -386,6 +388,8 @@ AppearancePrefView::_SetCurrentColorSchema(BMenuField* 
field)
        gCustomSchema.text_back_color = pref->getRGB(PREF_TEXT_BACK_COLOR);
        gCustomSchema.select_fore_color = pref->getRGB(PREF_SELECT_FORE_COLOR);
        gCustomSchema.select_back_color = pref->getRGB(PREF_SELECT_BACK_COLOR);
+       gCustomSchema.cursor_fore_color = pref->getRGB(PREF_CURSOR_FORE_COLOR);
+       gCustomSchema.cursor_back_color = pref->getRGB(PREF_CURSOR_BACK_COLOR);
 
        const char* currentSchemaName = NULL;
 


Other related posts:

  • » [haiku-commits] haiku: hrev44955 - src/apps/terminal - kallisti5