diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-02-17 22:53:39 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-02-17 22:53:39 +0000 |
commit | 4034314816f7ec9e26c9b9bfc2630c8ca0a24874 (patch) | |
tree | d48be98832d2d9cb977540541fae1acb1859142b /source/sw_draw.c | |
parent | a5afaf65af8ef50d1ce8bbd9e2133239013c26f7 (diff) |
Huge search and replace commit.
Use fixed size integer types from stdint.h instead of custom defined ones.
Get endianess infromation form endian.h.
Added `remotemode' console command.
Link with -ldl only on Linux.
Diffstat (limited to 'source/sw_draw.c')
-rw-r--r-- | source/sw_draw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/sw_draw.c b/source/sw_draw.c index 4f3845e..c43d8ef 100644 --- a/source/sw_draw.c +++ b/source/sw_draw.c @@ -117,7 +117,7 @@ typedef struct { int colorIndex; int colorFlags; clipRect_t clipRect; - uint32 flags; + int flags; } drawStatic_t; static drawStatic_t draw; @@ -135,7 +135,7 @@ void Draw_Init( void ) { } } -void Draw_SetColor( uint32 flags, const color_t color ) { +void Draw_SetColor( int flags, const color_t color ) { draw.flags &= ~DRAW_COLOR_MASK; if( flags == DRAW_COLOR_CLEAR ) { @@ -148,7 +148,7 @@ void Draw_SetColor( uint32 flags, const color_t color ) { } if( flags == DRAW_COLOR_INDEXED ) { - draw.colorIndex = *( uint32 * )color & 255; + draw.colorIndex = *( uint32_t * )color & 255; return; } @@ -161,7 +161,7 @@ void Draw_SetColor( uint32 flags, const color_t color ) { draw.flags |= flags; } -void Draw_SetClipRect( uint32 flags, const clipRect_t *clip ) { +void Draw_SetClipRect( int flags, const clipRect_t *clip ) { draw.flags &= ~DRAW_CLIP_MASK; if( flags == DRAW_CLIP_DISABLED ) { @@ -554,7 +554,7 @@ void Draw_StretchRaw( int x, int y, int w, int h, int cols, Draw_StretchData( x, y, w, h, 0, 0, cols, rows, cols, ( byte * )data ); } -void Draw_Char( int x, int y, uint32 flags, int ch, qhandle_t hFont ) { +void Draw_Char( int x, int y, int flags, int ch, qhandle_t hFont ) { image_t *image; int xx, yy; byte *data; |