From 87a8aae7d225a306545b3b05ee6578b85055f8f7 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 22 Feb 2006 07:52:44 +0000 Subject: [project @ 2006-02-22 07:52:44 by bursa] Remove ununsed flags parameter from width(). svn path=/import/rufl/; revision=2474 --- ruflmodule.c | 11 +++++------ 1 file 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 + * Copyright 2006 James Bursa */ /* 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; -- cgit v1.2.3