Fri, 24 Jul 2015 04:24:38 +0300
Apply Leonard's patch for fixing the colors:
The colors were broken again.
* isprint for some reason returned true when the given byte is higher than 255.
The char cast of the byte was then printed which resulted in odd characters
popping up. Black appeared as ^@ which is NULL in caret notation.
* After that, the colors were all messed up because the RLINE enum didn't take
in account the color swapping.
So instead of messing up the enum order/number I went for a new "range-like"
method.
* After fixing all of that, I noticed the Interface::render_colorline had a
broken loop since the VS2010 commits.
This made the lines not print entierely and messed up the colors etc.
/* Public Domain Curses */ /* $Id: panel.h,v 1.19 2008/07/13 16:08:16 wmcbrine Exp $ */ /*----------------------------------------------------------------------* * Panels for PDCurses * *----------------------------------------------------------------------*/ #ifndef __PDCURSES_PANEL_H__ #define __PDCURSES_PANEL_H__ 1 #include <curses.h> #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS) extern "C" { #endif typedef struct panelobs { struct panelobs *above; struct panel *pan; } PANELOBS; typedef struct panel { WINDOW *win; int wstarty; int wendy; int wstartx; int wendx; struct panel *below; struct panel *above; const void *user; struct panelobs *obscure; } PANEL; int bottom_panel(PANEL *pan); int del_panel(PANEL *pan); int hide_panel(PANEL *pan); int move_panel(PANEL *pan, int starty, int startx); PANEL *new_panel(WINDOW *win); PANEL *panel_above(const PANEL *pan); PANEL *panel_below(const PANEL *pan); int panel_hidden(const PANEL *pan); const void *panel_userptr(const PANEL *pan); WINDOW *panel_window(const PANEL *pan); int replace_panel(PANEL *pan, WINDOW *win); int set_panel_userptr(PANEL *pan, const void *uptr); int show_panel(PANEL *pan); int top_panel(PANEL *pan); void update_panels(void); #if defined(__cplusplus) || defined(__cplusplus__) || defined(__CPLUSPLUS) } #endif #endif /* __PDCURSES_PANEL_H__ */