summaryrefslogtreecommitdiff
path: root/source/r_shared.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-06-13 17:26:28 +0000
committerAndrey Nazarov <skuller@skuller.net>2010-06-13 17:26:28 +0000
commita4c98a614298d56fae192528323dcc74c5465e75 (patch)
treea29b39c0c35f2aa2ff831db5a0b9258bc15970ec /source/r_shared.h
parentb4778982f31e6465cd7a61a16cc57add05c2eb46 (diff)
Fixed endianess issues in *.wav and *.tga loading code.
Renamed MakeLong/MakeShort macros into MakeRawLong/MakeRawShort to prevent further confusion. Introduced LittleLongMem/LittleShortMem and RawLongMem/RawShortMem macros. Use more efficient versions of ShortSwap/LongSwap functions.
Diffstat (limited to 'source/r_shared.h')
-rw-r--r--source/r_shared.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/r_shared.h b/source/r_shared.h
index 507bfd6..ae0fea5 100644
--- a/source/r_shared.h
+++ b/source/r_shared.h
@@ -27,9 +27,9 @@ IMAGE MANAGER
*/
#if USE_BGRA
-#define MakeColor( r, g, b, a ) MakeLong( b, g, r, a )
+#define MakeColor( r, g, b, a ) MakeRawLong( b, g, r, a )
#else
-#define MakeColor( r, g, b, a ) MakeLong( r, g, b, a )
+#define MakeColor( r, g, b, a ) MakeRawLong( r, g, b, a )
#endif
#define R_Malloc( size ) Z_TagMalloc( size, TAG_RENDERER )
@@ -83,11 +83,11 @@ typedef enum {
it_tmp
} imagetype_t;
-#define EXTENSION_PNG MakeLong( '.', 'p', 'n', 'g' )
-#define EXTENSION_TGA MakeLong( '.', 't', 'g', 'a' )
-#define EXTENSION_JPG MakeLong( '.', 'j', 'p', 'g' )
-#define EXTENSION_PCX MakeLong( '.', 'p', 'c', 'x' )
-#define EXTENSION_WAL MakeLong( '.', 'w', 'a', 'l' )
+#define EXTENSION_PNG MakeRawLong( '.', 'p', 'n', 'g' )
+#define EXTENSION_TGA MakeRawLong( '.', 't', 'g', 'a' )
+#define EXTENSION_JPG MakeRawLong( '.', 'j', 'p', 'g' )
+#define EXTENSION_PCX MakeRawLong( '.', 'p', 'c', 'x' )
+#define EXTENSION_WAL MakeRawLong( '.', 'w', 'a', 'l' )
typedef struct image_s {
list_t entry;