summaryrefslogtreecommitdiff
path: root/src/testWidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testWidget.c')
-rw-r--r--src/testWidget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testWidget.c b/src/testWidget.c
index b8cbc7f..0f7da4d 100644
--- a/src/testWidget.c
+++ b/src/testWidget.c
@@ -26,8 +26,8 @@ int init (BDMWidget * widget)
images->widget = widget;
images->pixbuf = gdk_pixbuf_new_from_file("./babytux.png",NULL);
- images->pixW = 1280;
- images->pixH = 800;
+ images->pixW = gdk_pixbuf_get_width(images->pixbuf);
+ images->pixH = gdk_pixbuf_get_height(images->pixbuf);
widget->attrib->needsPainting = 1;
return 1;