Пример #1
0
static void dx_resize(struct uih_context *c, dialogparam * p)
{
    static char s[10];
    CONST static char *CONST st[] = { "8", "16", "24", "32" };
    sprintf(s, "%sx%s", resstr[p[0].dint], st[p[1].dint]);
    dxsize = s;
    resized = 1;
    ui_call_resize();
}
Пример #2
0
Файл: ui.c Проект: SLieng/nvm
void ui_resize(int new_width, int new_height)
{
  width = new_width;
  height = new_height;

  // TODO(bfredl): update default colors when they changed, NOT on resize.
  ui_call_default_colors_set(normal_fg, normal_bg, normal_sp,
                             cterm_normal_fg_color, cterm_normal_bg_color);

  // Deprecated:
  UI_CALL(update_fg, (ui->rgb ? normal_fg : cterm_normal_fg_color - 1));
  UI_CALL(update_bg, (ui->rgb ? normal_bg : cterm_normal_bg_color - 1));
  UI_CALL(update_sp, (ui->rgb ? normal_sp : -1));

  sr.top = 0;
  sr.bot = height - 1;
  sr.left = 0;
  sr.right = width - 1;
  ui_call_resize(width, height);
}