diff examples/dynamic/main.c @ 399:31b6633e3538

- Fix a minor error in src/sprite.c: should check *(s-1) instead of *s or the pointer will stop at '/', which is not what we want. - Fix various load path errors in examples because libtool put .so into .libs directory. - Fix an error in examples/dynamic/Makefile.am: scene_la_SOURCES should be scene.c instead of mytext.c
author john.cylee@gmail.com
date Fri, 12 Jun 2009 18:36:15 +0800
parents 433fa83d16f9
children 84ce2d4a8c3f
line wrap: on
line diff
--- a/examples/dynamic/main.c	Fri Jun 12 11:23:59 2009 +0800
+++ b/examples/dynamic/main.c	Fri Jun 12 18:36:15 2009 +0800
@@ -121,7 +121,7 @@
     mb_button_t *b;
     mb_sprite_t *sprite;
 
-    sprite = sprite_load("button", myApp->rdman, myApp->rdman->root_coord);
+    sprite = sprite_load(".libs/button", myApp->rdman, myApp->rdman->root_coord);
     b = mb_button_new(myApp->rdman, sprite, "btn");
     mb_button_add_onClick(b, test,NULL);
 }
@@ -140,7 +140,7 @@
     if (argc > 1) 
 	    myApp = MBApp_Init(argv[1]);
     else
-	    myApp = MBApp_Init("scene");
+	    myApp = MBApp_Init(".libs/scene");
     data.currentscene=0;
     draw_text();
     MBApp_setData(myApp,&data);