244 unsigned int screen_width, screen_height;
245 getScreenSize(screen_width, screen_height);
246 double wscale = (std::max)(1., ceil(2. * (
double)width / (
double)screen_width));
247 double hscale = (std::max)(1., ceil(2. * (
double)height / (
double)screen_height));
248 unsigned int scale = (
unsigned int)(std::max)(1u, (std::max)((
unsigned int)wscale, (
unsigned int)hscale));