Fix previous commit

This commit is contained in:
Emmanuele Bassi 2007-07-31 16:53:17 +00:00
parent 9036ad58a1
commit 6145261040
2 changed files with 6 additions and 3 deletions

View File

@ -321,11 +321,14 @@ clutter_backend_set_resolution (ClutterBackend *backend,
gdouble dpi)
{
ClutterFixed fixed_dpi;
ClutterBackendPrivate *priv;
g_return_if_fail (CLUTTER_IS_BACKEND (backend));
if (dpi < 0)
dpi = -1.0
dpi = -1.0;
priv = backend->priv;
fixed_dpi = CLUTTER_FLOAT_TO_FIXED (dpi);
if (priv->resolution != fixed_dpi)

View File

@ -205,8 +205,8 @@ clutter_backend_glx_post_parse (ClutterBackend *backend,
}
#endif
dpi = (((double) DisplayHeight (xdisplay, xscreen) * 25.4)
/ (double) DisplayHeightMM (xdisplay, xscreen));
dpi = (((double) DisplayHeight (backend_glx->xdpy, backend_glx->xscreen_num) * 25.4)
/ (double) DisplayHeightMM (backend_glx->xdpy, backend_glx->xscreen_num));
clutter_backend_set_resolution (backend, dpi);