commit a373e10915b17b0d7932d4661f8212d65abd5be1
parent c314efd5c206c1bd87b2ed373168de5f0b6d9b3e
Author: Michael Savage <mikejsavage@gmail.com>
Date: Mon, 18 Feb 2013 16:14:41 +0000
Fix bug with drawing text between main/chat areas
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/textbox.c b/src/textbox.c
@@ -167,11 +167,11 @@ void textbox_draw( TextBox* self )
int charsToPrint = MIN( remainingChars, self->cols - col );
int x = self->x + ( Style.font.width * col );
- int y = lineTop + ( ( Style.font.height + SPACING ) * row ) + Style.font.ascent + SPACING;
+ int y = lineTop + ( ( Style.font.height + SPACING ) * row );
if( y >= self->y )
{
- XDrawString( UI.display, UI.window, UI.gc, x, y, node->buffer + pos, charsToPrint );
+ XDrawString( UI.display, UI.window, UI.gc, x, y + Style.font.ascent + SPACING, node->buffer + pos, charsToPrint );
}
pos += charsToPrint;