oops - bugie :)

SVN revision: 5760
This commit is contained in:
Carsten Haitzler 2001-12-09 08:25:18 +00:00
parent e1cc039289
commit 73dbc3c5de
3 changed files with 22 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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;
} }