Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 22nd, 2011  |  syntax: None  |  size: 2.28 KB  |  views: 35  |  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. diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c
  2. index a55ccc3..6549fac 100644
  3. --- a/apps/gui/viewport.c
  4. +++ b/apps/gui/viewport.c
  5. @@ -336,6 +336,7 @@ void viewport_set_fullscreen(struct viewport *vp,
  6.          vp->lst_pattern = global_settings.lst_color;
  7.  #endif
  8.      }
  9. +    vp->disable_backdrop = false;
  10.  #endif
  11.  
  12.  #if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
  13. diff --git a/firmware/drivers/lcd-16bit-common.c b/firmware/drivers/lcd-16bit-common.c
  14. index 47f5968..e786f19 100644
  15. --- a/firmware/drivers/lcd-16bit-common.c
  16. +++ b/firmware/drivers/lcd-16bit-common.c
  17. @@ -152,7 +152,7 @@ void ICODE_ATTR lcd_mono_bitmap_part(const unsigned char *src, int src_x,
  18.              break;
  19.  
  20.            case DRMODE_BG:
  21. -            if (lcd_backdrop)
  22. +            if (lcd_backdrop && !current_vp->disable_backdrop)
  23.              {
  24.                  bo = lcd_backdrop_offset;
  25.                  do
  26. @@ -195,7 +195,7 @@ void ICODE_ATTR lcd_mono_bitmap_part(const unsigned char *src, int src_x,
  27.  
  28.            case DRMODE_SOLID:
  29.              fg = current_vp->fg_pattern;
  30. -            if (lcd_backdrop)
  31. +            if (lcd_backdrop && !current_vp->disable_backdrop)
  32.              {
  33.                  bo = lcd_backdrop_offset;
  34.                  do
  35. @@ -467,7 +467,7 @@ static void ICODE_ATTR lcd_alpha_bitmap_part_mix(const fb_data* image,
  36.                  while (--col);
  37.                  break;
  38.              case DRMODE_BG:
  39. -                if(lcd_backdrop)
  40. +                if(lcd_backdrop && !current_vp->disable_backdrop)
  41.                  {
  42.                      uintptr_t bo = lcd_backdrop_offset;
  43.                      do
  44. @@ -504,7 +504,7 @@ static void ICODE_ATTR lcd_alpha_bitmap_part_mix(const fb_data* image,
  45.                  while (--col);
  46.                  break;
  47.              case DRMODE_SOLID:
  48. -                if(lcd_backdrop)
  49. +                if(lcd_backdrop && !current_vp->disable_backdrop)
  50.                  {
  51.                      uintptr_t bo = lcd_backdrop_offset;
  52.                      do
  53. diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
  54. index 76b8b09..3fcd1ab 100644
  55. --- a/firmware/export/lcd.h
  56. +++ b/firmware/export/lcd.h
  57. @@ -54,6 +54,7 @@ struct viewport {
  58.      unsigned lse_pattern;
  59.      unsigned lst_pattern;
  60.  #endif
  61. +    bool disable_backdrop;
  62.  #endif
  63.  };
  64.  
  65.  
  66.