summaryrefslogtreecommitdiffstats
path: root/source/widget.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-09 19:25:03 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-09 19:25:03 +0100
commitc6a9de8c4a1dd9fb5c179ff323f0508f72974b9e (patch)
treee4c9dd8c0ce2507a1127c6b30d3e22340b8ca44f /source/widget.c
parentd7dab65e5b89f2a223fba00c62accee2d5313609 (diff)
Use snprintf instead of sprintf
Diffstat (limited to 'source/widget.c')
-rw-r--r--source/widget.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/source/widget.c b/source/widget.c
index 648462a5..15162ba7 100644
--- a/source/widget.c
+++ b/source/widget.c
@@ -1,10 +1,9 @@
#include <glib.h>
#include "widget.h"
-
-int widget_intersect ( const Widget *widget, int x, int y)
+int widget_intersect ( const Widget *widget, int x, int y )
{
- if(widget == NULL ){
+ if ( widget == NULL ) {
return FALSE;
}
@@ -14,14 +13,12 @@ int widget_intersect ( const Widget *widget, int x, int y)
}
}
return FALSE;
-
}
-void widget_move(Widget *widget, short x, short y)
+void widget_move ( Widget *widget, short x, short y )
{
- if ( widget != NULL ){
+ if ( widget != NULL ) {
widget->x = x;
- widget->y = y;
+ widget->y = y;
}
-
}