Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r9efa5bd ra2a8833  
    444444  /* update the terminal if we need to */
    445445  owl_window_redraw_scheduled();
    446   /* On colorpair shortage, reset and redraw /everything/. NOTE: if we
    447    * still overflow, this be useless work. With 8-colors, we get 64
    448    * pairs. With 256-colors, we get 32768 pairs with ext-colors
    449    * support and 256 otherwise. */
     446  /* On colorpair shortage, reset and redraw /everything/. NOTE: if
     447   * the current screen uses too many colorpairs, this draws
     448   * everything twice. But this is unlikely; COLOR_PAIRS is 64 with
     449   * 8+1 colors, and 256^2 with 256+1 colors. (+1 for default.) */
    450450  cpmgr = owl_global_get_colorpair_mgr(&g);
    451451  if (cpmgr->overflow) {
    452     owl_function_debugmsg("colorpairs: used all %d pairs; reset pairs and redraw.",
    453                           owl_util_get_colorpairs());
     452    owl_function_debugmsg("colorpairs: color shortage; reset pairs and redraw. COLOR_PAIRS = %d", COLOR_PAIRS);
    454453    owl_fmtext_reset_colorpairs(cpmgr);
    455454    owl_function_full_redisplay();
Note: See TracChangeset for help on using the changeset viewer.