diff src/X_supp.c @ 265:b42ee279669e

Change function name and add comments. - sh_image_set_geometry() to replace sh_image_set(). - page "Image and Image Loader". - comments. diff -r 1ed06481e9ea img/image_n_ldr.dia Binary file img/image_n_ldr.dia has changed diff -r 1ed06481e9ea img/image_n_ldr.png Binary file img/image_n_ldr.png has changed
author Thinker K.F. Li <thinker@branda.to>
date Sat, 24 Jan 2009 15:09:03 +0800
parents 29acbd8a0dd0
children cd6af7da32c9
line wrap: on
line diff
--- a/src/X_supp.c	Fri Jan 23 23:22:14 2009 +0800
+++ b/src/X_supp.c	Sat Jan 24 15:09:03 2009 +0800
@@ -420,6 +420,8 @@
  */
 static int X_MB_init(const char *display_name,
 	      int w, int h, X_MB_runtime_t *xmb_rt) {
+    mb_img_ldr_t *img_ldr;
+    
     memset(xmb_rt, 0, sizeof(X_MB_runtime_t));
 
     xmb_rt->w = w;
@@ -450,8 +452,9 @@
 
     xmb_rt->tman = mb_tman_new();
 
-    xmb_rt->img_ldr = simple_mb_img_ldr_new("./");
-    xmb_rt->rdman->img_ldr = xmb_rt->img_ldr;
+    img_ldr = simple_mb_img_ldr_new("./");
+    xmb_rt->img_ldr = img_ldr;
+    rdman_set_img_ldr(xmb_rt->rdman, img_ldr);
     
 #ifndef ONLY_MOUSE_MOVE_RAW
     xmb_rt->last = NULL;