aboutsummaryrefslogtreecommitdiffstats
path: root/widget_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'widget_image.c')
-rw-r--r--widget_image.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/widget_image.c b/widget_image.c
index d4c78d1..ef095c6 100644
--- a/widget_image.c
+++ b/widget_image.c
@@ -1,9 +1,9 @@
-/* $Id: widget_image.c 773 2007-02-25 12:39:09Z michael $
- * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget_image.c $
+/* $Id: widget_image.c 1106 2010-02-07 14:03:46Z mzuther $
+ * $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/widget_image.c $
*
* image widget handling
*
- * Copyright (C) 2006 Michael Reinelt <reinelt@eunet.at>
+ * Copyright (C) 2006 Michael Reinelt <michael@reinelt.co.at>
* Copyright (C) 2006 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
@@ -22,7 +22,7 @@
*
*/
-/*
+/*
* exported functions:
*
* WIDGET_CLASS Widget_Image
@@ -59,7 +59,7 @@
#include "cfg.h"
#include "qprintf.h"
#include "property.h"
-#include "timer.h"
+#include "timer_group.h"
#include "widget.h"
#include "widget_image.h"
#include "rgb.h"
@@ -195,7 +195,7 @@ static void widget_image_update(void *Self)
/* add a new one-shot timer */
if (P2N(&Image->update) > 0) {
- timer_add(widget_image_update, Self, P2N(&Image->update), 1);
+ timer_add_widget(widget_image_update, Self, P2N(&Image->update), 1);
}
}
@@ -237,6 +237,8 @@ int widget_image_init(WIDGET * Self)
free(section);
Self->data = Image;
+ Self->x2 = Self->col + Image->width;
+ Self->y2 = Self->row + Image->height;
} else {