diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-06-23 07:42:16 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-06-23 07:42:16 +0800 |
| commit | 7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc (patch) | |
| tree | e98c627e1da5c764563774b89b0c06d7ac5ad0a4 /libpsn00b/psxetc | |
| parent | ae9e545c3ed33d39ce21ae13ceb8337fa34901b8 (diff) | |
| download | psn00bsdk-7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc.tar.gz | |
LibPSn00b officially v0.10b, added psxsio library, better DrawSync() and VSync(), better reference manual.
Diffstat (limited to 'libpsn00b/psxetc')
| -rw-r--r-- | libpsn00b/psxetc/fntsort.c | 2 | ||||
| -rw-r--r-- | libpsn00b/psxetc/font.c | 4 | ||||
| -rw-r--r-- | libpsn00b/psxetc/makefile | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libpsn00b/psxetc/fntsort.c b/libpsn00b/psxetc/fntsort.c index 29e7de5..3890ebb 100644 --- a/libpsn00b/psxetc/fntsort.c +++ b/libpsn00b/psxetc/fntsort.c @@ -36,8 +36,8 @@ char *FntSort(unsigned int *ot, char *pri, int x, int y, const char *text) { pri = (char*)sprt; tpage = (DR_TPAGE*)pri; - setlen( tpage, 1 ); tpage->code[0] = _font_tpage; + setlen( tpage, 1 ); setcode( tpage, 0xe1 ); addPrim( ot, pri ); pri += sizeof(DR_TPAGE); diff --git a/libpsn00b/psxetc/font.c b/libpsn00b/psxetc/font.c index 3b0370b..2f062b7 100644 --- a/libpsn00b/psxetc/font.c +++ b/libpsn00b/psxetc/font.c @@ -22,7 +22,7 @@ void FntLoad(int x, int y) { _font_tpage = getTPage( 0, 0, pos.x, 0 ) | 0x200; LoadImage( &pos, tim.paddr ); - DrawSync(); + DrawSync(0); // Load font clut pos = *tim.crect; @@ -32,6 +32,6 @@ void FntLoad(int x, int y) { _font_clut = getClut( pos.x, pos.y ); LoadImage( &pos, tim.caddr ); - DrawSync(); + DrawSync(0); }
\ No newline at end of file diff --git a/libpsn00b/psxetc/makefile b/libpsn00b/psxetc/makefile index 676fc6e..fe29212 100644 --- a/libpsn00b/psxetc/makefile +++ b/libpsn00b/psxetc/makefile @@ -12,8 +12,8 @@ OFILES = $(addprefix build/,$(CFILES:.c=.o) $(AFILES:.s=.o)) INCLUDE = -I../include -CFLAGS = -O2 -msoft-float -fno-builtin -nostdlib -Wa,--strip-local-absolute -AFLAGS = -msoft-float --strip-local-absolute +CFLAGS = -g -O2 -msoft-float -fno-builtin -nostdlib -Wa,--strip-local-absolute +AFLAGS = -g -msoft-float --strip-local-absolute CC = $(PREFIX)gcc AS = $(PREFIX)as |
