repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: c7b4e8c5198febc93f4147e292f2effc737b2ffe: path_to: revision_to:
commit c7b4e8c5198febc93f4147e292f2effc737b2ffe Author: Emanuele GiaquintaDate: Fri Dec 28 14:57:04 2007 +0000 Make pix_colors_{focused,unfocused} arrays non dynamic. diff --git a/src/init.C b/src/init.C
--- a/src/init.C
+++ b/src/init.C
@@ -283,11 +283,7 @@ const char *const def_colorName[] =
void
rxvt_term::init_vars ()
{
- pix_colors = //
- pix_colors_focused = new rxvt_color [TOTAL_COLORS];
-#ifdef OFF_FOCUS_FADING
- pix_colors_unfocused = new rxvt_color [TOTAL_COLORS];
-#endif
+ pix_colors = pix_colors_focused;
MEvent.time = CurrentTime;
MEvent.button = AnyButton;
diff --git a/src/main.C b/src/main.C
--- a/src/main.C
+++ b/src/main.C
@@ -278,11 +278,6 @@ rxvt_term::~rxvt_term ()
clear ();
}
- delete [] pix_colors_focused;
-#if OFF_FOCUS_FADING
- delete [] pix_colors_unfocused;
-#endif
-
#ifdef HAVE_BG_PIXMAP
bgPixmap.destroy ();
#endif
diff --git a/src/rxvt.h b/src/rxvt.h
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -1054,10 +1054,6 @@ struct rxvt_vars : TermWin_t {
uint8_t options[(Opt_count + 7) >> 3];
XSizeHints szHint;
rxvt_color *pix_colors;
- rxvt_color *pix_colors_focused;
-#ifdef OFF_FOCUS_FADING
- rxvt_color *pix_colors_unfocused;
-#endif
Cursor TermWin_cursor; /* cursor for vt window */
int sb_shadow; /* scrollbar shadow width */
int numlock_state;
@@ -1068,6 +1064,10 @@ struct rxvt_vars : TermWin_t {
screen_t screen;
screen_t swap;
selection_t selection;
+ rxvt_color pix_colors_focused[TOTAL_COLORS];
+#ifdef OFF_FOCUS_FADING
+ rxvt_color pix_colors_unfocused[TOTAL_COLORS];
+#endif
};
struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
-----END OF PAGE-----