git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Usermode/AxWin3 - Fiddling with text presentation
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin3_src
/
WM
/
renderers
/
widget
/
disptext.c
diff --git
a/Usermode/Applications/axwin3_src/WM/renderers/widget/disptext.c
b/Usermode/Applications/axwin3_src/WM/renderers/widget/disptext.c
index
4a091de
..
4ea4833
100644
(file)
--- a/
Usermode/Applications/axwin3_src/WM/renderers/widget/disptext.c
+++ b/
Usermode/Applications/axwin3_src/WM/renderers/widget/disptext.c
@@
-29,6
+29,10
@@
void Widget_DispText_UpdateText(tElement *Element, const char *Text)
Element->Text = strdup(Text);
WM_Render_GetTextDims(NULL, Element->Text, &w, &h);
+
+ // Apply edge padding
+ w += 2; h += 2;
+
if(Element->Parent && (Element->Parent->Flags & ELEFLAG_VERTICAL)) {
Element->MinCross = w;
Element->MinWith = h;
UCC
git Repository :: git.ucc.asn.au