• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/stand/efi/libefi/

Lines Matching refs:gfx_state

486 	ap = teken_get_defattr(&gfx_state.tg_teken);
505 teken_set_defattr(&gfx_state.tg_teken, &a);
508 teken_input(&gfx_state.tg_teken, "\e[2J", 4);
849 if (gfx_state.tg_fb_type == FB_TEXT)
861 teken_set_defattr(&gfx_state.tg_teken, &attr);
863 gfx_fb_drawrect(0, 0, gfx_state.tg_fb.fb_width,
864 gfx_state.tg_origin.tp_row, 1);
866 gfx_state.tg_fb.fb_height - gfx_state.tg_origin.tp_row - 1,
867 gfx_state.tg_fb.fb_width, gfx_state.tg_fb.fb_height, 1);
868 gfx_fb_drawrect(0, gfx_state.tg_origin.tp_row,
869 gfx_state.tg_origin.tp_col,
870 gfx_state.tg_fb.fb_height - gfx_state.tg_origin.tp_row - 1, 1);
872 gfx_state.tg_fb.fb_width - gfx_state.tg_origin.tp_col - 1,
873 gfx_state.tg_origin.tp_row, gfx_state.tg_fb.fb_width,
874 gfx_state.tg_fb.fb_height, 1);
877 teken_set_defattr(&gfx_state.tg_teken, &attr);
897 if (efi_find_framebuffer(&gfx_state) == 0 && use_gfx_mode) {
900 roff = ffs(gfx_state.tg_fb.fb_mask_red) - 1;
901 goff = ffs(gfx_state.tg_fb.fb_mask_green) - 1;
902 boff = ffs(gfx_state.tg_fb.fb_mask_blue) - 1;
905 gfx_state.tg_fb.fb_mask_red >> roff, roff,
906 gfx_state.tg_fb.fb_mask_green >> goff, goff,
907 gfx_state.tg_fb.fb_mask_blue >> boff, boff);
913 gfx_state.tg_fb_type = FB_TEXT;
938 gfx_state.tg_cursor_visible = false;
940 if (gfx_state.tg_fb_type == FB_TEXT) {
942 gfx_state.tg_functions = &tf;
950 fb_height = gfx_state.tg_fb.fb_height;
951 fb_width = gfx_state.tg_fb.fb_width;
971 gfx_state.tg_tp.tp_row = 25;
972 gfx_state.tg_tp.tp_col = 80;
973 setup_font(&gfx_state, fb_height, fb_width);
974 rows = gfx_state.tg_tp.tp_row;
975 cols = gfx_state.tg_tp.tp_col;
977 gfx_state.tg_origin.tp_row = (fb_height -
978 (rows * gfx_state.tg_font.vf_height)) / 2;
979 gfx_state.tg_origin.tp_col = (fb_width -
980 (cols * gfx_state.tg_font.vf_width)) / 2;
983 gfx_state.tg_glyph_size = gfx_state.tg_font.vf_height *
984 gfx_state.tg_font.vf_width * 4;
985 free(gfx_state.tg_glyph);
986 gfx_state.tg_glyph = malloc(gfx_state.tg_glyph_size);
987 if (gfx_state.tg_glyph == NULL)
990 gfx_state.tg_functions = &tfx;
998 gfx_state.tg_fb.fb_bpp);
1004 gfx_state.tg_tp.tp_row = rows;
1005 gfx_state.tg_tp.tp_col = cols;
1007 teken_init(&gfx_state.tg_teken, gfx_state.tg_functions,
1008 &gfx_state);
1013 teken_set_winsize(&gfx_state.tg_teken,
1014 &gfx_state.tg_tp);
1015 a = teken_get_defattr(&gfx_state.tg_teken);
1029 teken_set_defattr(&gfx_state.tg_teken, &attr);
1058 teken_set_defattr(&gfx_state.tg_teken, &attr);
1066 teken_input(&gfx_state.tg_teken, "\e[2J", 4);
1067 gfx_state.tg_functions->tf_param(&gfx_state,
1090 if (cons_update_mode(gfx_state.tg_fb_type != FB_TEXT))
1203 teken_input(&gfx_state.tg_teken, &ch, sizeof (ch));