Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 24th, 2010  |  syntax: None  |  size: 1.27 KB  |  hits: 219  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: apps/gui/viewport.c
  2. ===================================================================
  3. --- apps/gui/viewport.c (revision 26245)
  4. +++ apps/gui/viewport.c (working copy)
  5. @@ -37,7 +37,12 @@
  6.  #define FG_FALLBACK LCD_DEFAULT_FG
  7.  #define BG_FALLBACK LCD_DEFAULT_BG
  8.  #endif
  9. +#ifdef HAVE_REMOTE_LCD
  10. +#define REMOTE_FG_FALLBACK LCD_REMOTE_DEFAULT_FG
  11. +#define REMOTE_BG_FALLBACK LCD_REMOTE_DEFAULT_BG
  12. +#endif
  13.  
  14. +
  15.  /* all below isn't needed for pc tools (i.e. checkwps/wps editor)
  16.   * only viewport_parse_viewport() is */
  17.  #ifndef __PCTOOL__
  18. @@ -437,9 +442,23 @@
  19.  
  20.  #if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1)
  21.      if (!LIST_VALUE_PARSED(set, PL_FG))
  22. -        vp->fg_pattern = FG_FALLBACK;
  23. +    {
  24. +#ifdef HAVE_REMOTE_LCD
  25. +        if (screen == SCREEN_REMOTE)
  26. +            vp->fg_pattern = REMOTE_FG_FALLBACK;
  27. +        else
  28. +#endif
  29. +            vp->fg_pattern = FG_FALLBACK;
  30. +    }
  31.      if (!LIST_VALUE_PARSED(set, PL_BG))
  32. -        vp->bg_pattern = BG_FALLBACK;
  33. +    {
  34. +#ifdef HAVE_REMOTE_LCD
  35. +        if (screen == SCREEN_REMOTE)
  36. +            vp->bg_pattern = REMOTE_BG_FALLBACK;
  37. +        else
  38. +#endif
  39. +            vp->bg_pattern = BG_FALLBACK;
  40. +    }
  41.  #endif /* LCD_DEPTH > 1 || LCD_REMOTE_DEPTH > 1 */
  42.  
  43.  #ifdef HAVE_LCD_COLOR