Mercurial > MadButterfly
comparison examples/dynamic/text.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 |
---|---|
65 mb_timeval_t tmo,interval; | 65 mb_timeval_t tmo,interval; |
66 | 66 |
67 if (argc > 1) | 67 if (argc > 1) |
68 myApp = MBApp_Init(argv[1]); | 68 myApp = MBApp_Init(argv[1]); |
69 else | 69 else |
70 myApp = MBApp_Init("mytext"); | 70 myApp = MBApp_Init(".libs/mytext"); |
71 data.currentscene=0; | 71 data.currentscene=0; |
72 MBApp_setData(myApp,&data); | 72 MBApp_setData(myApp,&data); |
73 get_now(&tmo); | 73 get_now(&tmo); |
74 MB_TIMEVAL_SET(&interval, 1 ,0); | 74 MB_TIMEVAL_SET(&interval, 1 ,0); |
75 mb_tman_timeout( MBApp_getTimer(myApp), &tmo, switch_scene, myApp); | 75 mb_tman_timeout( MBApp_getTimer(myApp), &tmo, switch_scene, myApp); |