Mercurial > sdl-ios-xcode
annotate android/scripts/acc.sh @ 4896:d72e28642940
Code will never reach SDL_SetTexturePalette since SDL_SetDisplayPalette
will fail if the display e.g. is RGB32 or RGB24. The patch will ignore
errors in SDL_SetDislayPalette.
This should also affect the opengl renderer on systems supporting
paletted textures - mine does not (NVIDIA).
With this patch the directfb drivers delivers the same results for
test_palette like the software renderer.
Kind regards,
André
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 27 Sep 2010 00:48:56 -0700 |
parents | 0f05f2f16fad |
children |
rev | line source |
---|---|
4699
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
1 #!/bin/bash |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
2 ANDROID_NDK="/home/paul/Projects/gsoc/sdk/android-ndk-r4" |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
3 TOOLS_PATH="$ANDROID_NDK/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin" |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
4 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
5 export PATH=$TOOLS_PATH:$PATH |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
6 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
7 CC="arm-eabi-gcc" |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
8 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
9 #cflags |
4701
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
10 ACC_C=" -I$ANDROID_NDK/build/platforms/android-8/common/include \ |
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
11 -I$ANDROID_NDK/build/platforms/android-8/arch-arm/usr/include \ |
d40bb3165d2b
Added (partially implemented) android video backend and associated files needed to build
Paul Hunkin <paul@bieh.net>
parents:
4699
diff
changeset
|
12 -DANDROID -DANDROID_NDK -c" |
4699
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
13 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
14 |
925008931501
Added some wrapper shell scripts to make android compiling easier
Paul Hunkin <paul@bieh.net>
parents:
diff
changeset
|
15 $CC $CFLAGS $ACC_C $@ |