Mercurial > MadButterfly
comparison examples/dynamic/hello.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 |
comparison
equal
deleted
inserted
replaced
398:674717c2c3ee | 399:31b6633e3538 |
---|---|
46 mb_timeval_t tmo,interval; | 46 mb_timeval_t tmo,interval; |
47 | 47 |
48 if (argc > 1) | 48 if (argc > 1) |
49 myApp = MBApp_Init(argv[1]); | 49 myApp = MBApp_Init(argv[1]); |
50 else | 50 else |
51 myApp = MBApp_Init("scene"); | 51 myApp = MBApp_Init(".libs/scene"); |
52 data.currentscene=0; | 52 data.currentscene=0; |
53 MBApp_setData(myApp,&data); | 53 MBApp_setData(myApp,&data); |
54 //b = mb_button_new(myApp, myApp->rootsprite, "btn"); | 54 //b = mb_button_new(myApp, myApp->rootsprite, "btn"); |
55 //mb_button_add_onClick(b, test,NULL); | 55 //mb_button_add_onClick(b, test,NULL); |
56 get_now(&tmo); | 56 get_now(&tmo); |