summaryrefslogtreecommitdiff
path: root/package/mc/patches/patch-lib_tty_tty-ncurses_c
blob: 34c0b53df985800dbe54f5e86254b8104aa64c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- mc-4.8.31.orig/lib/tty/tty-ncurses.c	2024-01-20 20:34:38.000000000 +0100
+++ mc-4.8.31/lib/tty/tty-ncurses.c	2024-02-14 11:53:54.151821148 +0100
@@ -561,39 +561,11 @@ tty_fill_region (int y, int x, int rows,
 void
 tty_colorize_area (int y, int x, int rows, int cols, int color)
 {
-#ifdef ENABLE_SHADOWS
-    cchar_t *ctext;
-    wchar_t wch[10];            /* TODO not sure if the length is correct */
-    attr_t attrs;
-    short color_pair;
-
-    if (!use_colors || !tty_clip (&y, &x, &rows, &cols))
-        return;
-
-    tty_setcolor (color);
-    ctext = g_malloc (sizeof (cchar_t) * (cols + 1));
-
-    for (int row = 0; row < rows; row++)
-    {
-        mvin_wchnstr (y + row, x, ctext, cols);
-
-        for (int col = 0; col < cols; col++)
-        {
-            getcchar (&ctext[col], wch, &attrs, &color_pair, NULL);
-            setcchar (&ctext[col], wch, attrs, color, NULL);
-        }
-
-        mvadd_wchnstr (y + row, x, ctext, cols);
-    }
-
-    g_free (ctext);
-#else
     (void) y;
     (void) x;
     (void) rows;
     (void) cols;
     (void) color;
-#endif /* ENABLE_SHADOWS */
 }
 
 /* --------------------------------------------------------------------------------------------- */