Skip to content
Browse files

Fixed minor bug with dependencies in build.sh

  • Loading branch information...
1 parent 3d9bd22 commit 600660c6520300083fce00f3c61c5c35afa67e4c @pelya committed Jan 2, 2013
View
3 build.sh
@@ -25,8 +25,7 @@ NDKBUILDPATH=$PATH
export `grep "AppFullName=" AndroidAppSettings.cfg`
if ( grep "package $AppFullName;" project/src/Globals.java > /dev/null 2>&1 && \
[ "`readlink AndroidAppSettings.cfg`" -ot "project/src/Globals.java" ] && \
- [ -z "`find project/java/* project/AndroidManifestTemplate.xml -cnewer project/src/Globals.java`" ] && \
- [ -z "`find project/jni/application/src/AndroidData/* -cnewer project/src/Globals.java`" ] ) ; then true ; else
+ [ -z "`find project/java/* project/AndroidManifestTemplate.xml -cnewer project/src/Globals.java`" ] ) ; then true ; else
./changeAppSettings.sh -a
sleep 1
touch project/src/Globals.java
View
3 project/jni/application/test-advertisements/AndroidAppSettings.cfg
@@ -16,6 +16,8 @@ SdlVideoResizeKeepAspect=n
CompatibilityHacks=n
CompatibilityHacksStaticInit=n
CompatibilityHacksTextInputEmulatesHwKeyboard=n
+CompatibilityHacksPreventAudioChopping=n
+CompatibilityHacksAppIgnoresAudioBufferSize=n
AppUsesMouse=y
AppNeedsTwoButtonMouse=y
ShowMouseCursor=n
@@ -34,6 +36,7 @@ StartupMenuButtonTimeout=500
HiddenMenuOptions='OptionalDownloadConfig'
FirstStartMenuOptions=''
MultiABI=n
+AppMinimumRAM=0
AppVersionCode=101
AppVersionName="1.01"
ResetSdlConfigForThisVersion=n
View
5 project/jni/application/test-advertisements/ballfield.cpp
@@ -620,6 +620,11 @@ int main(int argc, char* argv[])
color |= 0x1f0;
if( b & SDL_BUTTON_MMASK )
color |= 0x0f;
+
+ adX = mx * physicalW / SCREEN_W - adSize.w - 10;
+ adY = my * physicalH / SCREEN_H - adSize.h - 10;
+ SDL_ANDROID_SetAdvertisementPosition(adX, adY);
+ SDL_ANDROID_SetAdvertisementVisible(1);
}
r.x = mx;
r.y = my;

0 comments on commit 600660c

Please sign in to comment.
Something went wrong with that request. Please try again.