Guest User

Untitled

a guest
May 24th, 2010
264
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×