aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-05-10 17:07:36 -0700
committerDavid 'Digit' Turner <digit@android.com>2010-05-10 18:35:07 -0700
commit20894ae3fa98f82da925fbeb72e616eef509758a (patch)
treec55db026ddc60683434f48d6c58cf51677609074 /android
parent1368f99ba2c6f29a97ba057d30d4a0235c83a441 (diff)
downloadexternal_qemu-20894ae3fa98f82da925fbeb72e616eef509758a.zip
external_qemu-20894ae3fa98f82da925fbeb72e616eef509758a.tar.gz
external_qemu-20894ae3fa98f82da925fbeb72e616eef509758a.tar.bz2
Upstream: HOST_WORDS_ALIGNED -> WORDS_ALIGNED
Change-Id: Ica9022695d83fb48a8c25fdb1e1f0dc1c63747ff
Diffstat (limited to 'android')
-rw-r--r--android/main.c2
-rw-r--r--android/skin/image.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/android/main.c b/android/main.c
index f00e1da..0b967f5 100644
--- a/android/main.c
+++ b/android/main.c
@@ -217,7 +217,7 @@ sdl_set_window_icon( void )
for ( ; d < d_end; d++ ) {
unsigned pix = d[0];
-#if WORDS_BIGENDIAN
+#if HOST_WORDS_BIGENDIAN
/* R,G,B,A read as RGBA => ARGB */
pix = ((pix >> 8) & 0xffffff) | (pix << 24);
#else
diff --git a/android/skin/image.c b/android/skin/image.c
index 051fc6d..789c308 100644
--- a/android/skin/image.c
+++ b/android/skin/image.c
@@ -41,7 +41,7 @@ sdl_surface_from_argb32( void* base, int w, int h )
{
return SDL_CreateRGBSurfaceFrom(
base, w, h, 32, w*4,
-#if WORDS_BIGENDIAN
+#if HOST_WORDS_BIGENDIAN
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
#else
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
@@ -315,7 +315,7 @@ skin_image_load( SkinImage* image )
for ( ; d < d_end; d++ ) {
unsigned pix = d[0];
-#if WORDS_BIGENDIAN
+#if HOST_WORDS_BIGENDIAN
/* R,G,B,A read as RGBA => ARGB */
pix = ((pix >> 8) & 0xffffff) | (pix << 24);
#else