diff options
author | Joost Peters | 2009-02-21 12:21:15 +0000 |
---|---|---|
committer | Joost Peters | 2009-02-21 12:21:15 +0000 |
commit | 3988062776a0b1c3775807b8f733382c4c1d838f (patch) | |
tree | 7fcfd90c6e61fa682fbb8a588e0a471e85e46f7f /engines/sci/gfx | |
parent | f069c04c60abf8616b258c9550f31b6b58ece787 (diff) | |
download | scummvm-rg350-3988062776a0b1c3775807b8f733382c4c1d838f.tar.gz scummvm-rg350-3988062776a0b1c3775807b8f733382c4c1d838f.tar.bz2 scummvm-rg350-3988062776a0b1c3775807b8f733382c4c1d838f.zip |
replace #ifdef WORDS_BIGENDIAN by SCUMM_BIG_ENDIAN
svn-id: r38689
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r-- | engines/sci/gfx/antialias.cpp | 2 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_line.cpp | 2 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_resource.cpp | 8 | ||||
-rw-r--r-- | engines/sci/gfx/gfx_support.cpp | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/gfx/antialias.cpp b/engines/sci/gfx/antialias.cpp index f297301236..e7bf190d23 100644 --- a/engines/sci/gfx/antialias.cpp +++ b/engines/sci/gfx/antialias.cpp @@ -135,7 +135,7 @@ void gfxr_antialiase(gfx_pixmap_t *pixmap, gfx_mode_t *mode, gfxr_antialiasing_t int masks[3]; int shift_const = 0; -#ifdef WORDS_BIGENDIAN +#ifdef SCUMM_BIG_ENDIAN shift_const = (sizeof(unsigned long) - mode->bytespp) << 3; #endif diff --git a/engines/sci/gfx/gfx_line.cpp b/engines/sci/gfx/gfx_line.cpp index 21f2f429b1..84c4e78d04 100644 --- a/engines/sci/gfx/gfx_line.cpp +++ b/engines/sci/gfx/gfx_line.cpp @@ -52,7 +52,7 @@ static inline void DRAWLINE_FUNC(byte *buffer, int linewidth, Common::Point star dy = end.y - start.y; finalx = end.x; finaly = end.y; -#ifdef WORDS_BIGENDIAN +#ifdef SCUMM_BIG_ENDIAN color = GUINT32_SWAP_LE_BE_CONSTANT(color); #endif dx = abs(dx); diff --git a/engines/sci/gfx/gfx_resource.cpp b/engines/sci/gfx/gfx_resource.cpp index c65668a6db..779a87a3e1 100644 --- a/engines/sci/gfx/gfx_resource.cpp +++ b/engines/sci/gfx/gfx_resource.cpp @@ -222,10 +222,10 @@ gfx_pixmap_t *gfxr_endianness_adjust(gfx_pixmap_t *pixmap, gfx_mode_t *mode) { #include "gfx_pixmap_scale.cpp" #undef COPY_BYTES -#ifdef WORDS_BIGENDIAN +#ifdef SCUMM_BIG_ENDIAN # undef EXTRA_BYTE_OFFSET # define EXTRA_BYTE_OFFSET 1 -#endif // WORDS_BIGENDIAN +#endif // SCUMM_BIG_ENDIAN #define SIZETYPE guint32 #define FUNCNAME _gfx_xlate_pixmap_unfiltered_3 #define FUNCNAME_LINEAR _gfx_xlate_pixmap_linear_3 @@ -233,10 +233,10 @@ gfx_pixmap_t *gfxr_endianness_adjust(gfx_pixmap_t *pixmap, gfx_mode_t *mode) { #define COPY_BYTES 3 #include "gfx_pixmap_scale.cpp" #undef COPY_BYTES -#ifdef WORDS_BIGENDIAN +#ifdef SCUMM_BIG_ENDIAN # undef EXTRA_BYTE_OFFSET # define EXTRA_BYTE_OFFSET 0 -#endif // WORDS_BIGENDIAN +#endif // SCUMM_BIG_ENDIAN #define SIZETYPE guint32 #define FUNCNAME _gfx_xlate_pixmap_unfiltered_4 diff --git a/engines/sci/gfx/gfx_support.cpp b/engines/sci/gfx/gfx_support.cpp index b99e179d60..276d51e176 100644 --- a/engines/sci/gfx/gfx_support.cpp +++ b/engines/sci/gfx/gfx_support.cpp @@ -362,7 +362,7 @@ int gfx_crossblit_pixmap(gfx_mode_t *mode, gfx_pixmap_t *pxm, int priority, rect alpha_mask &= 0xff; } -#ifdef WORDS_BIGENDIAN +#ifdef SCUMM_BIG_ENDIAN alpha += (mode->bytespp) - (shift_nr + 1); #else alpha += shift_nr; |