root/core/gui_usb.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. gui_usb_draw_icon
  2. gui_usb_draw_text
  3. gui_usb_draw_osd

   1 #include "camera_info.h"
   2 #include "conf.h"
   3 #include "gui_draw.h"
   4 #include "gui_usb.h"
   5 
   6 //-------------------------------------------------------------------
   7 static icon_cmd usb_icon[] =
   8 {
   9         { IA_FILLED_ROUND_RECT, 3, 11, 29, 14, IDX_COLOR_GREY_DK, IDX_COLOR_GREY_DK },
  10         { IA_FILLED_ROUND_RECT, 0,  0, 31, 11, IDX_COLOR_GREY_DK, IDX_COLOR_GREY_DK },
  11         { IA_FILLED_RECT,       2,  1, 29,  2, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  12         { IA_FILLED_RECT,       1,  2,  2,  8, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  13         { IA_FILLED_RECT,      29,  2, 30,  8, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  14         { IA_FILLED_RECT,       5,  5, 26,  8, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  15         { IA_FILLED_RECT,       7,  7,  9,  8, IDX_COLOR_YELLOW,  IDX_COLOR_YELLOW  },
  16         { IA_FILLED_RECT,      12,  7, 14,  8, IDX_COLOR_YELLOW,  IDX_COLOR_YELLOW  },
  17         { IA_FILLED_RECT,      17,  7, 19,  8, IDX_COLOR_YELLOW,  IDX_COLOR_YELLOW  },
  18         { IA_FILLED_RECT,      22,  7, 24,  8, IDX_COLOR_YELLOW,  IDX_COLOR_YELLOW  },
  19         { IA_FILLED_RECT,       2,  9,  3, 10, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  20         { IA_FILLED_RECT,      28,  9, 29, 10, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  21         { IA_FILLED_RECT,       3, 11,  4, 12, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  22         { IA_FILLED_RECT,      27, 11, 28, 12, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  23         { IA_FILLED_RECT,       5, 12, 26, 13, IDX_COLOR_GREY,    IDX_COLOR_GREY    },
  24         { IA_END }
  25 };
  26 
  27 static void gui_usb_draw_icon()
  28 {
  29     draw_icon_cmds(conf.usb_info_pos.x, conf.usb_info_pos.y, usb_icon);
  30 }
  31 //-------------------------------------------------------------------
  32 static void gui_usb_draw_text()
  33 {
  34     twoColors cl = user_color(conf.osd_color);
  35     draw_string(conf.usb_info_pos.x, conf.usb_info_pos.y, "<USB>", cl);
  36 }
  37 //--------------------------------------------------------------------
  38 void gui_usb_draw_osd(int is_osd_edit)
  39 {
  40     if ((conf.usb_info_enable == 1 && conf.remote_enable) || is_osd_edit)
  41         gui_usb_draw_icon();
  42     else if ((conf.usb_info_enable == 2 && conf.remote_enable) || is_osd_edit)
  43         gui_usb_draw_text();
  44 }

/* [<][>][^][v][top][bottom][index][help] */