+VFrame *BC_Resources::default_medium_7segment[] = {
+ new VFramePng(_0_png),
+ new VFramePng(_1_png),
+ new VFramePng(_2_png),
+ new VFramePng(_3_png),
+ new VFramePng(_4_png),
+ new VFramePng(_5_png),
+ new VFramePng(_6_png),
+ new VFramePng(_7_png),
+ new VFramePng(_8_png),
+ new VFramePng(_9_png),
+ new VFramePng(colon_png),
+ new VFramePng(period_png),
+ new VFramePng(a_png),
+ new VFramePng(b_png),
+ new VFramePng(c_png),
+ new VFramePng(d_png),
+ new VFramePng(e_png),
+ new VFramePng(f_png),
+ new VFramePng(space_png),
+ new VFramePng(dash_png)
+};
+
+
+BC_Resources::BC_Resources()
+{
+ synchronous = 0;
+ vframe_shm = 0;
+ double default_scale = 1.0; // display_size/1000.;
+ char *env = getenv("BC_FONT_SCALE");
+ font_scale = env ? atof(env) : default_scale;
+ if( font_scale <= 0 ) font_scale = 1;
+ init_font_defs(font_scale);
+ env = getenv("BC_ICON_SCALE");
+ icon_scale = env ? atof(env) : default_scale;
+ if( icon_scale <= 0 ) icon_scale = 1;
+
+ id_lock = new Mutex("BC_Resources::id_lock");
+ create_window_lock = new Mutex("BC_Resources::create_window_lock", 1);
+ id = 0;
+ machine_cpus = get_machine_cpus();
+
+ for(int i = 0; i < FILEBOX_HISTORY_SIZE; i++)
+ filebox_history[i].path[0] = 0;
+
+#ifdef HAVE_XFT
+ XftInitFtLibrary();
+#endif
+
+ little_endian = (*(const u_int32_t*)"\01\0\0\0") & 1;
+ wide_encoding = little_endian ? "UTF32LE" : "UTF32BE";
+ use_xvideo = 1;
+
+ type_to_icon = default_type_to_icon;
+ bar_data = default_bar;
+ check = default_check_image;
+ listbox_button = default_listbox_button;
+ listbox_bg = default_listbox_bg;
+ listbox_expand = default_listbox_expand;
+ listbox_column = default_listbox_column;
+ listbox_up = default_listbox_up;
+ listbox_dn = default_listbox_dn;
+ listbox_title_overlap = 0;
+ listbox_title_margin = 0;
+ listbox_title_color = BLACK;
+ listbox_title_hotspot = 5;
+
+ listbox_border1 = DKGREY;
+ listbox_border2_hi = RED;
+ listbox_border2 = BLACK;
+ listbox_border3_hi = RED;
+ listbox_border3 = MEGREY;
+ listbox_border4 = WHITE;
+ listbox_selected = BLUE;
+ listbox_highlighted = LTGREY;
+ listbox_inactive = WHITE;
+ listbox_text = BLACK;
+
+ pan_data = 0;
+ pan_text_color = YELLOW;