summaryrefslogtreecommitdiff
path: root/textscreen/txt_button.c
diff options
context:
space:
mode:
authorSimon Howard2006-05-20 15:45:36 +0000
committerSimon Howard2006-05-20 15:45:36 +0000
commit1ba69c88d26b33fbec2af21172bb52ad214b0f2a (patch)
treeaa298f6d80f4cf05283ed16cd486f2ed05fa88a1 /textscreen/txt_button.c
parentf761f821f95a3fbf8af1eb645d8ae9412abdc541 (diff)
downloadchocolate-doom-1ba69c88d26b33fbec2af21172bb52ad214b0f2a.tar.gz
chocolate-doom-1ba69c88d26b33fbec2af21172bb52ad214b0f2a.tar.bz2
chocolate-doom-1ba69c88d26b33fbec2af21172bb52ad214b0f2a.zip
Clip windows against the workspace boundaries.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 487
Diffstat (limited to 'textscreen/txt_button.c')
-rw-r--r--textscreen/txt_button.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/textscreen/txt_button.c b/textscreen/txt_button.c
index ba6f387a..4bf5b9c0 100644
--- a/textscreen/txt_button.c
+++ b/textscreen/txt_button.c
@@ -23,21 +23,18 @@ static void TXT_ButtonDrawer(txt_widget_t *widget, int w, int selected)
TXT_BGColor(TXT_COLOR_BLUE, 0);
TXT_FGColor(TXT_COLOR_BRIGHT_WHITE);
- TXT_PutChar(' ');
+ TXT_DrawString(" ");
if (selected)
{
TXT_BGColor(TXT_COLOR_GREY, 0);
}
- for (i=0; i<strlen(button->label); ++i)
- {
- TXT_PutChar(button->label[i]);
- }
+ TXT_DrawString(button->label);
for (i=strlen(button->label); i < w-2; ++i)
{
- TXT_PutChar(' ');
+ TXT_DrawString(" ");
}
}