summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/spuenc.c8
-rw-r--r--libvo/spuenc.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/libvo/spuenc.c b/libvo/spuenc.c
index a8efc7978a..e2cb9438ea 100644
--- a/libvo/spuenc.c
+++ b/libvo/spuenc.c
@@ -35,7 +35,7 @@ encode_do_control(int x,int y, encodedata* ed, pixbuf* pb) {
int controlstart= ed->count;
int x1;
int i;
- u_int top, left, bottom, right;
+ unsigned int top, left, bottom, right;
top= 450 - pb->y/2;
left=(720 / 2) - (pb->x / 2);
@@ -138,7 +138,7 @@ encode_do_control(int x,int y, encodedata* ed, pixbuf* pb) {
}
static void
-encode_put_nibble( encodedata* ed, u_char nibble ) {
+encode_put_nibble( encodedata* ed, unsigned char nibble ) {
if( ed->nibblewaiting ) {
ed->data[ed->count++]|= nibble;
ed->nibblewaiting= 0;
@@ -175,7 +175,7 @@ encode_eol( encodedata* ed ) {
static void
encode_do_row( encodedata* ed, pixbuf* pb, int row ) {
int i= 0;
- u_char* pix= pb->pixels + row * pb->x;
+ unsigned char* pix= pb->pixels + row * pb->x;
int color= *pix;
int n= 0; /* the number of pixels of this color */
@@ -237,7 +237,7 @@ void
pixbuf_load_xpm( pixbuf* pb, char* xpm[] ) {
int colors, chrs, l, n;
char c[4], table[256];
- u_char *b, *i;
+ unsigned char *b, *i;
sscanf( xpm[0], "%d %d %d %d", &pb->x, &pb->y, &colors, &chrs);
if( colors > 4 ) {
diff --git a/libvo/spuenc.h b/libvo/spuenc.h
index f978de4d4b..b8dc5f0e4d 100644
--- a/libvo/spuenc.h
+++ b/libvo/spuenc.h
@@ -25,12 +25,12 @@
typedef struct {
int x, y;
- u_int rgb[4];
- u_char* pixels;
+ unsigned int rgb[4];
+ unsigned char* pixels;
} pixbuf;
typedef struct {
- u_char data[DATASIZE];
+ unsigned char data[DATASIZE];
int count; /* the count of bytes written */
int oddstart;
int nibblewaiting;