Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=349b4c46d188f2a5b48b1d944e345bfe4e795352
commit 349b4c46d188f2a5b48b1d944e345bfe4e795352 Author: James Buren <[email protected]> Date: Sat Aug 11 13:10:42 2012 -0500 forgot utility.c commit diff --git a/utility.c b/utility.c index b236ec7..bd995a5 100644 --- a/utility.c +++ b/utility.c @@ -80,6 +80,22 @@ extern bool get_text_size(const char *text,int *width,int *height) return true; } + +extern bool get_button_size(const char *text,int *width,int *height) +{ + assert(text != 0); + assert(width != 0); + assert(height != 0); + + if(!get_text_size(text,width,height)) + return false; + + *width += 5; + + *height += 3; + + return true; +} #endif // -%- strip: yes; add-newline: yes; use-tabs: no; indent-width: 2; tab-width: 2; -%- _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
