/* * Initialise the GUI. Create all the windows, set up all the call-backs * etc. */ int gui_mch_init(void) { vimjs_init(); gui.border_offset = 0; gui.border_width = 0; gui.scrollbar_width = 0; gui.scrollbar_height = 0; gui.back_pixel = gui_get_color((char_u*)"black"); gui.norm_pixel = gui_get_color((char_u*)"white"); set_normal_colors(); gui_check_colors(); gui.def_back_pixel = gui.back_pixel; gui.def_norm_pixel = gui.norm_pixel; gui.in_focus = TRUE; Rows = vimjs_get_window_height() / vimjs_get_char_height(); Columns = vimjs_get_window_width() / vimjs_get_char_width(); return OK; }
/* * Initialise the GUI. Create all the windows, set up all the call-backs * etc. */ int gui_mch_init(void) { vimjs_init(); gui.border_width = 0; gui.scrollbar_width = 0; gui.scrollbar_height = 0; gui.back_pixel = gui_get_color("black"); gui.norm_pixel = gui_get_color("white"); set_normal_colors(); gui_check_colors(); gui.def_back_pixel = gui.back_pixel; gui.def_norm_pixel = gui.norm_pixel; gui.in_focus = TRUE; /* TODO gui.char_ascent = 6; */ return OK; }