{
synchronous = 0;
vframe_shm = 0;
-
- display_info = new BC_DisplayInfo("", 0);
- int display_w = display_info->get_root_w();
- int display_h = display_info->get_root_h();
- int display_size = display_h < display_w ? display_h : display_w;
- double default_scale = display_size/1000.;
+ /* causes more problems than it fixes */
+ //display_info = new BC_DisplayInfo("", 0);
+ //int display_w = display_info->get_root_w();
+ //int display_h = display_info->get_root_h();
+ //int display_size = display_h < display_w ? display_h : display_w;
+ 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;
{
int ncfgs = glx_fb_configs(attrs+2, cfgs);
if( ncfgs ) return ncfgs;
- if( msgs < 1 ) { ++msgs; printf(_("%s: trying fallback 1\n"), msg); }
+ if( msgs < 1 ) { ++msgs; /* printf(_("%s: trying fallback 1\n"), msg); */ }
ncfgs = glx_fb_configs(attrs+0, cfgs);
if( ncfgs ) return ncfgs;
- if( msgs < 2 ) { ++msgs; printf(_("%s: trying single buffering\n"), msg); }
+ if( msgs < 2 ) { ++msgs; /* printf(_("%s: trying single buffering\n"), msg); */ }
attrs[5] = False;
ncfgs = glx_fb_configs(attrs+0, cfgs);
if( ncfgs ) return ncfgs;
- if( msgs < 3 ) { ++msgs; printf(_("%s: trying fallback 2\n"), msg); }
+ if( msgs < 3 ) { ++msgs; /* printf(_("%s: trying fallback 2\n"), msg); */ }
ncfgs = glx_fb_configs(attrs+2, cfgs);
if( ncfgs ) return ncfgs;
- if( msgs < 4 ) { ++msgs; printf(_("%s: trying attributes None\n"), msg); }
+ if( msgs < 4 ) { ++msgs; /* printf(_("%s: trying attributes None\n"), msg); */ }
ncfgs = glx_fb_configs(None, cfgs);
if( ncfgs ) return ncfgs;
disable_opengl();