[aquaria] MiniMap gets cropped at 1280x1024
Andrew Church
achurch+aquaria at achurch.org
Thu Aug 18 20:49:10 EDT 2011
>Hi all,
>I just tried the latest build of Aquaria and the minimap at the bottom left
>corner of the screen gets cropped (ie, it's screen position is diverted too
>much to the bottom).
Oops, this is probably my fault. Patch below.
--Andrew Church
achurch at achurch.org
http://achurch.org/
# HG changeset patch
# User Andrew Church <achurch at achurch.org>
# Date 1313667883 -32400
# Node ID 929873f4768508f44273dc725df6f532fa717df1
# Parent 88bd4f013e2e756e1b57891570f6c7980ea5025c
Prevent the minimap from getting cut off on the bottom of a 1280x1024 display.
This patch fixes a bug in positioning the minimap which causes the
bottom part of the minimap to be cut off when the display aspect ratio
is less than 4:3 (e.g., 5:4 as on a 1280x1024 display).
diff -r 88bd4f013e2e -r 929873f47685 Aquaria/MiniMapRender.cpp
--- a/Aquaria/MiniMapRender.cpp Wed Aug 17 20:55:53 2011 +0900
+++ b/Aquaria/MiniMapRender.cpp Thu Aug 18 20:44:43 2011 +0900
@@ -243,7 +243,7 @@
RenderObject::onUpdate(dt);
position.x = core->getVirtualWidth() - core->getVirtualOffX() - getMiniMapWidth()/2;
- position.y = core->getVirtualHeight() - getMiniMapHeight()/2;
+ position.y = 600 - getMiniMapHeight()/2;
position.z = 2.9;
waterSin += dt * (bitSizeLookupPeriod / (2*PI));
More information about the aquaria
mailing list