*
*/
int logical_px(const int logical) {
- const double dpi = (double)root_screen->height_in_pixels * 25.4 /
- (double)root_screen->height_in_millimeters;
+ const int dpi = (double)root_screen->height_in_pixels * 25.4 /
+ (double)root_screen->height_in_millimeters;
return ceil((dpi / 96.0) * logical);
}