fix dpi check! oops!

SVN revision: 36210
This commit is contained in:
Carsten Haitzler 2008-09-24 13:03:54 +00:00
parent bf418729d2
commit 4d3f6362b6
1 changed files with 2 additions and 1 deletions

View File

@ -620,7 +620,8 @@ ecore_x_dpi_get(void)
Screen *s;
s = DefaultScreenOfDisplay(_ecore_x_disp);
return (s->width / (s->mwidth * 254)) / 10;
if (s->mwidth <= 0) return 75;
return (((s->width * 254) / s->mwidth) + 5) / 10;
}
static int