From d0db5963110929d0d2353278a4d64caca358f48a Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Sun, 27 Sep 2009 23:57:39 +0000 Subject: Fix rounding coordinates at the edge of the screen. svn-id: r44430 --- engines/draci/surface.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'engines/draci/surface.cpp') diff --git a/engines/draci/surface.cpp b/engines/draci/surface.cpp index 4f97ee75c8..872b228797 100644 --- a/engines/draci/surface.cpp +++ b/engines/draci/surface.cpp @@ -138,9 +138,6 @@ uint Surface::centerOnX(uint x, uint width) const { int newX = x - width / 2; - if (newX < 0) - newX = 0; - if (newX + width >= (uint)w - 1) newX = (w - 1) - width; @@ -162,9 +159,6 @@ uint Surface::centerOnY(uint y, uint height) const { int newY = y - height / 2; - if (newY < 0) - newY = 0; - if (newY + height >= (uint)h - 1) newY = (h - 1) - height; -- cgit v1.2.3