From 4771ddf92d6cdca7a2861b8254f191793021eda6 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 5 Jul 2011 14:46:30 +0000
Subject: [PATCH] fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3802 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/engines/default/engine/Tooltip.lua | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/game/engines/default/engine/Tooltip.lua b/game/engines/default/engine/Tooltip.lua
index d2e9de8691..cfa91020ae 100644
--- a/game/engines/default/engine/Tooltip.lua
+++ b/game/engines/default/engine/Tooltip.lua
@@ -125,15 +125,13 @@ function _M:drawFrame(x, y, r, g, b, a)
 end
 
 function _M:toScreen(x, y, nb_keyframes)
-	local zoom = 1
-
 	-- We translate and scale opengl matrix to make the popup effect easily
-	local ox, oy = x, y
+	local ox, oy = math.floor(x), math.floor(y)
+	x, y = ox, oy
 	local hw, hh = math.floor(self.w / 2), math.floor(self.h / 2)
 	local tx, ty = x + hw, y + hh
 	x, y = -hw, -hh
 	core.display.glTranslate(tx, ty, 0)
-	if zoom < 1 then core.display.glScale(zoom, zoom, zoom) end
 
 	-- Draw the frame and shadow
 	self:drawFrame(x, y, 1, 1, 1, self.frame.a)
@@ -147,7 +145,6 @@ function _M:toScreen(x, y, nb_keyframes)
 	end
 
 	-- Restiore normal opengl matrix
-	if zoom < 1 then core.display.glScale() end
 	core.display.glTranslate(-tx, -ty, 0)
 end
 
-- 
GitLab