parent
e1cc039289
commit
73dbc3c5de
|
@ -15,5 +15,5 @@ bin_SCRIPTS = evas-config
|
||||||
|
|
||||||
EXTRA_DIST = README AUTHORS COPYING evas.spec evas.m4 FAQ-EVAS
|
EXTRA_DIST = README AUTHORS COPYING evas.spec evas.m4 FAQ-EVAS
|
||||||
|
|
||||||
m4datadir = $(datadir)/aclocal
|
m4datadir = @aclocaldir@
|
||||||
m4data_DATA = evas.m4
|
m4data_DATA = evas.m4
|
||||||
|
|
|
@ -28,6 +28,18 @@ LDFLAGS="$LDFLAGS -L$withval/lib";
|
||||||
LIBS_TTF="-L"$withval"/lib"
|
LIBS_TTF="-L"$withval"/lib"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
aclocal_usr=yes
|
||||||
|
AC_ARG_ENABLE(aclocal_usr,
|
||||||
|
[ --disable-aclocal_usr disable evas forcibly puting evas.m4 in /usr/aclocal and use prefix instead],
|
||||||
|
[
|
||||||
|
if test x$enableval = xyes; then
|
||||||
|
aclocal_usr=yes
|
||||||
|
else
|
||||||
|
aclocal_usr=no
|
||||||
|
fi
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
gl=yes
|
gl=yes
|
||||||
AC_ARG_ENABLE(gl,
|
AC_ARG_ENABLE(gl,
|
||||||
[ --disable-gl disable building with opengl support],
|
[ --disable-gl disable building with opengl support],
|
||||||
|
@ -273,6 +285,13 @@ AC_SUBST(imlib2_libs)
|
||||||
AC_SUBST(ttf_includes)
|
AC_SUBST(ttf_includes)
|
||||||
AC_SUBST(ttf_libs)
|
AC_SUBST(ttf_libs)
|
||||||
|
|
||||||
|
aclocaldir=$datadir"/aclocal"
|
||||||
|
if test X"$aclocal_usr" = Xyes; then
|
||||||
|
aclocaldir="/usr/share/aclocal"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_SUBST(aclocaldir)
|
||||||
|
|
||||||
AC_OUTPUT([
|
AC_OUTPUT([
|
||||||
Makefile
|
Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
|
|
|
@ -641,7 +641,7 @@ double
|
||||||
evas_screen_x_to_world(Evas e, int x)
|
evas_screen_x_to_world(Evas e, int x)
|
||||||
{
|
{
|
||||||
if (!e) return 0;
|
if (!e) return 0;
|
||||||
return (double)((double)x * e->current.val_cache.mult_x)
|
return (double)((double)x / e->current.val_cache.mult_x)
|
||||||
+ e->current.viewport.x;
|
+ e->current.viewport.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -649,6 +649,6 @@ double
|
||||||
evas_screen_y_to_world(Evas e, int y)
|
evas_screen_y_to_world(Evas e, int y)
|
||||||
{
|
{
|
||||||
if (!e) return 0;
|
if (!e) return 0;
|
||||||
return (double)((double)y * e->current.val_cache.mult_y)
|
return (double)((double)y / e->current.val_cache.mult_y)
|
||||||
+ e->current.viewport.y;
|
+ e->current.viewport.y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue