diff options
Diffstat (limited to 'libpsn00b/psxgpu')
| -rw-r--r-- | libpsn00b/psxgpu/fntsort.c | 3 | ||||
| -rw-r--r-- | libpsn00b/psxgpu/font.c | 1 | ||||
| -rw-r--r-- | libpsn00b/psxgpu/gettimimage.c | 9 | ||||
| -rw-r--r-- | libpsn00b/psxgpu/setdefdispenv.c | 1 | ||||
| -rw-r--r-- | libpsn00b/psxgpu/setdefdrawenv.c | 1 |
5 files changed, 10 insertions, 5 deletions
diff --git a/libpsn00b/psxgpu/fntsort.c b/libpsn00b/psxgpu/fntsort.c index 3890ebb..9358793 100644 --- a/libpsn00b/psxgpu/fntsort.c +++ b/libpsn00b/psxgpu/fntsort.c @@ -1,3 +1,4 @@ +#include <sys/types.h> #include <stdio.h> #include <ctype.h> #include <psxgpu.h> @@ -5,7 +6,7 @@ extern unsigned short _font_tpage; extern unsigned short _font_clut; -char *FntSort(unsigned int *ot, char *pri, int x, int y, const char *text) { +char *FntSort(u_long *ot, char *pri, int x, int y, const char *text) { DR_TPAGE *tpage; SPRT_8 *sprt = (SPRT_8*)pri; diff --git a/libpsn00b/psxgpu/font.c b/libpsn00b/psxgpu/font.c index cd4acab..8be04a3 100644 --- a/libpsn00b/psxgpu/font.c +++ b/libpsn00b/psxgpu/font.c @@ -1,3 +1,4 @@ +#include <sys/types.h> #include <stdio.h> #include <string.h> #include <malloc.h> diff --git a/libpsn00b/psxgpu/gettimimage.c b/libpsn00b/psxgpu/gettimimage.c index 49ce8e9..d9cf1bf 100644 --- a/libpsn00b/psxgpu/gettimimage.c +++ b/libpsn00b/psxgpu/gettimimage.c @@ -1,8 +1,9 @@ +#include <sys/types.h> #include <psxgpu.h> -int GetTimInfo(unsigned int *tim, TIM_IMAGE *timimg) { +int GetTimInfo(u_long *tim, TIM_IMAGE *timimg) { - unsigned int *rtim; + u_long *rtim; // Check ID if( ( tim[0]&0xff ) != 0x10 ) { @@ -21,7 +22,7 @@ int GetTimInfo(unsigned int *tim, TIM_IMAGE *timimg) { if( timimg->mode & 0x8 ) { timimg->crect = (RECT*)(rtim+1); - timimg->caddr = (unsigned int*)(rtim+3); + timimg->caddr = (u_long*)(rtim+3); rtim += rtim[0]>>2; @@ -32,7 +33,7 @@ int GetTimInfo(unsigned int *tim, TIM_IMAGE *timimg) { } timimg->prect = (RECT*)(rtim+1); - timimg->paddr = (unsigned int*)(rtim+3); + timimg->paddr = (u_long*)(rtim+3); return 0; diff --git a/libpsn00b/psxgpu/setdefdispenv.c b/libpsn00b/psxgpu/setdefdispenv.c index 6dec49c..2d7b2b4 100644 --- a/libpsn00b/psxgpu/setdefdispenv.c +++ b/libpsn00b/psxgpu/setdefdispenv.c @@ -1,3 +1,4 @@ +#include <sys/types.h> #include <psxgpu.h> DISPENV *SetDefDispEnv(DISPENV *disp, int x, int y, int w, int h) { diff --git a/libpsn00b/psxgpu/setdefdrawenv.c b/libpsn00b/psxgpu/setdefdrawenv.c index bcd93ca..6fd6086 100644 --- a/libpsn00b/psxgpu/setdefdrawenv.c +++ b/libpsn00b/psxgpu/setdefdrawenv.c @@ -1,3 +1,4 @@ +#include <sys/types.h> #include <psxgpu.h> DRAWENV *SetDefDrawEnv(DRAWENV *draw, int x, int y, int w, int h) { |
