Disable the vertical centering of small 'portraits'.

Shadow_Master noticed that with a short message on a big screen the portrait
is shown outside the dialog. There's no proper way to fix it, so disabled
this feature for the time being.
This commit is contained in:
Mark de Wever 2009-01-29 20:39:06 +00:00
parent 2748b87f8a
commit 2d93237754

View file

@ -125,9 +125,13 @@
# The Y location of the image to display, only tested on the left side.
# Note since we don't know the exact height of the text we can't centre
# the image. Instead we use the centre of the reserved image space.
#
# TODO the Y can't be determined properly since we don't know the height
# of the panel. Disabled the centring for now.
#
#define __GUI_IMAGE_DISPLAYED_Y
(
if(image_original_height > 100,
if(image_original_height > 0,
(height - image_height),
height - (({__GUI_IMAGE_WIDTH} - image_height) / 2))