From: Pierre Habouzit (MadCoder Date: Tue, 21 Jun 2005 21:19:45 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~21 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=6c1937d7f4026b5084271a51b651e530b896abb2;p=platal.git backport Patches applied: * opensource@polytechnique.org--2005/platal--release--0.9.7--patch-8 finer scattering git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-743 --- diff --git a/htdocs/geoloc/globe.php b/htdocs/geoloc/globe.php index 05c3497..a8b32d0 100644 --- a/htdocs/geoloc/globe.php +++ b/htdocs/geoloc/globe.php @@ -29,8 +29,11 @@ $img = imageCreateFromPng("../images/globe.png"); $coul = imagecolorallocate($img, 0, 0, 0); -while ($a = $res->next()) - imagefilledellipse($img, round(($a[1]/100000 + 180 )/360*600), round((90 - $a[0]/100000)/180*300), 5, 5, $coul); +while ($a = $res->next()) { + $x = floor(($a[1]/100000 + 180 )/360*600); + $y = floor((90 - $a[0]/100000)/180*300); + imagefilledrectangle($img, $x, $y, $x+1, $y+1, $coul); +} imagePng($img); imagedestroy($img); diff --git a/templates/geoloc/index.tpl b/templates/geoloc/index.tpl index 4f506b7..a9c5cbe 100644 --- a/templates/geoloc/index.tpl +++ b/templates/geoloc/index.tpl @@ -31,7 +31,7 @@

-Carte du monde des X +Carte du monde des X

Pour savoir comment ça marche tu peux aller faire un tour sur le site de développement du projet.