From 2cc6541945dd8f37d357416313ca3bc1ca796907 Mon Sep 17 00:00:00 2001 From: avolkov Date: Fri, 13 Jan 2006 04:28:31 +0000 Subject: [PATCH] Erase larger rectangle with printed planet type to accomodate other languages git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2173 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/planets/scan.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sc2/src/sc2code/planets/scan.c b/sc2/src/sc2code/planets/scan.c index 81e924d96..aa741a51d 100644 --- a/sc2/src/sc2code/planets/scan.c +++ b/sc2/src/sc2code/planets/scan.c @@ -71,14 +71,15 @@ EraseCoarseScan (void) const int rightScanWidth = 80; const int leftScanOffset = 5; const int rightScanOffset = 50; + const int nameEraseWidth = SIS_SCREEN_WIDTH - 2; LockMutex (GraphicsLock); SetContext (SpaceContext); - r.corner.x = (SIS_SCREEN_WIDTH >> 1) - (160 >> 1); - r.corner.y = 13 - 7; - r.extent.width = 160; - r.extent.height = 10; + r.corner.x = (SIS_SCREEN_WIDTH >> 1) - (nameEraseWidth >> 1); + r.corner.y = 13 - 10; + r.extent.width = nameEraseWidth; + r.extent.height = 14; RepairBackRect (&r); GetFrameRect (SetAbsFrameIndex (SpaceJunkFrame, 20), &tr);