summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-02-22 07:52:44 (GMT)
committer James Bursa <james@netsurf-browser.org>2006-02-22 07:52:44 (GMT)
commit87a8aae7d225a306545b3b05ee6578b85055f8f7 (patch)
tree4f8d5a88711a1e9be745464930febb01a315fc83
parentf4fbf7f9f6722df12bad73aa2aed74231410be61 (diff)
downloadlibrufl-87a8aae7d225a306545b3b05ee6578b85055f8f7.tar.gz
librufl-87a8aae7d225a306545b3b05ee6578b85055f8f7.tar.bz2
[project @ 2006-02-22 07:52:44 by bursa]
Remove ununsed flags parameter from width(). svn path=/import/rufl/; revision=2474
-rw-r--r--ruflmodule.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ruflmodule.c b/ruflmodule.c
index 66fb689..b62a883 100644
--- a/ruflmodule.c
+++ b/ruflmodule.c
@@ -2,7 +2,7 @@
* This file is part of RUfl
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license
- * Copyright 2005 James Bursa <james@semichrome.net>
+ * Copyright 2006 James Bursa <james@semichrome.net>
*/
/* Python module for RUfl. */
@@ -42,7 +42,7 @@ pyrufl_paint(PyObject *self /* Not used */, PyObject *args)
static char pyrufl_width__doc__[] =
-"width(font_family, font_style, font_size, string, flags)\n\n"
+"width(font_family, font_style, font_size, string)\n\n"
"Return the width of Unicode text."
;
@@ -54,12 +54,11 @@ pyrufl_width(PyObject *self /* Not used */, PyObject *args)
unsigned int font_size;
const char *string;
int length;
- unsigned int flags;
int width = 0;
- if (!PyArg_ParseTuple(args, "siIs#I",
+ if (!PyArg_ParseTuple(args, "siIs#",
&font_family, &font_style, &font_size,
- &string, &length, &flags))
+ &string, &length))
return NULL;
rufl_width(font_family, font_style, font_size, string, length,
@@ -173,7 +172,7 @@ static char pyrufl_module_documentation[] =
;
void
-initrufl()
+initrufl(void)
{
PyObject *module;
rufl_code code;