From e354e5e4817d2ee8f64980fdd49479e68af797f9 Mon Sep 17 00:00:00 2001 From: avolkov Date: Sat, 22 May 2010 18:27:21 +0000 Subject: [PATCH] Fixed uninited TEXT field in cargo display; bug #1092 git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3538 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/ChangeLog | 1 + sc2/src/uqm/planets/cargo.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sc2/ChangeLog b/sc2/ChangeLog index ccbf65906..c9a4313d9 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,5 @@ Changes towards version 0.7: +- Fixed misaligned cargo count (bug #1092) - Coredev - Fixed the network SuperMelee team configuration protocol - SvdB - Fixed fuel reserve bounds checks - SvdB - Fixed a crash when filling fuel tanks over 10 (bug #1082) - Alex diff --git a/sc2/src/uqm/planets/cargo.c b/sc2/src/uqm/planets/cargo.c index 106c8f1e3..d9ed028fb 100644 --- a/sc2/src/uqm/planets/cargo.c +++ b/sc2/src/uqm/planets/cargo.c @@ -104,6 +104,7 @@ DrawElementAmount (COUNT element, bool selected) CARGO_SELECTED_BACK_COLOR : CARGO_BACK_COLOR); DrawFilledRectangle (&r); + t.align = ALIGN_RIGHT; t.pStr = buf; t.baseline.y = r.corner.y + TEXT_BASELINE;