| From 2d2c2efa3f47f00f3c392cf7dd3431d25194c543 Mon Sep 17 00:00:00 2001 |
| From: Orgad Shaneh <orgads@gmail.com> |
| Date: Thu, 13 Feb 2020 09:25:02 +0200 |
| Subject: [PATCH] Fix TUI with pdcurses |
| |
| --- |
| gdb/tui/tui-win.c | 16 ++++++++-------- |
| 1 file changed, 8 insertions(+), 8 deletions(-) |
| |
| diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c |
| index d6ceacc041..2c793a6d02 100644 |
| --- a/gdb/tui/tui-win.c |
| +++ b/gdb/tui/tui-win.c |
| @@ -123,15 +123,15 @@ struct tui_translate |
| The list of values must be terminated by a NULL. |
| After the NULL value, an entry defines the default. */ |
| struct tui_translate tui_border_mode_translate[] = { |
| - { "normal", A_NORMAL }, |
| - { "standout", A_STANDOUT }, |
| - { "reverse", A_REVERSE }, |
| - { "half", A_DIM }, |
| - { "half-standout", A_DIM | A_STANDOUT }, |
| - { "bold", A_BOLD }, |
| - { "bold-standout", A_BOLD | A_STANDOUT }, |
| + { "normal", static_cast<int>(A_NORMAL) }, |
| + { "standout", static_cast<int>(A_STANDOUT) }, |
| + { "reverse", static_cast<int>(A_REVERSE) }, |
| + { "half", static_cast<int>(A_DIM) }, |
| + { "half-standout", static_cast<int>(A_DIM | A_STANDOUT) }, |
| + { "bold", static_cast<int>(A_BOLD) }, |
| + { "bold-standout", static_cast<int>(A_BOLD | A_STANDOUT) }, |
| { 0, 0 }, |
| - { "normal", A_NORMAL } |
| + { "normal", static_cast<int>(A_NORMAL) } |
| }; |
| |
| /* Translation tables for border-kind, one for each border |
| -- |
| 2.25.0.windows.1 |
| |