textbox: merge geometry and extents function

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-25 18:28:20 +02:00
parent 59a0f7e34b
commit 6922df8b46
1 changed files with 1 additions and 7 deletions

View File

@ -55,7 +55,7 @@ typedef struct
} textbox_data_t; } textbox_data_t;
static area_t static area_t
textbox_geometry(widget_t *widget, int screen) textbox_extents(lua_State *L, widget_t *widget)
{ {
textbox_data_t *d = widget->data; textbox_data_t *d = widget->data;
area_t geometry = d->extents; area_t geometry = d->extents;
@ -75,12 +75,6 @@ textbox_geometry(widget_t *widget, int screen)
return geometry; return geometry;
} }
static area_t
textbox_extents(lua_State *L, widget_t *widget)
{
return textbox_geometry(widget, 0);
}
/** Draw a textbox widget. /** Draw a textbox widget.
* \param widget The widget. * \param widget The widget.
* \param ctx The draw context. * \param ctx The draw context.