aboutsummaryrefslogtreecommitdiff
path: root/examples/system
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2022-07-30 00:53:31 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2022-07-30 00:53:31 +0200
commit073a859acf16ccbc0f49364e38126bf2bf03aa3d (patch)
tree90fac6072c5fe3ccee0505c881f89aa262d4eed7 /examples/system
parent0e755e9801a2dcf7b9827c90cc38e9f532d06393 (diff)
downloadpsn00bsdk-073a859acf16ccbc0f49364e38126bf2bf03aa3d.tar.gz
Deprecate u_short, u_int and u_long types in libpsn00b
Diffstat (limited to 'examples/system')
-rw-r--r--examples/system/dynlink/library/balls.c2
-rw-r--r--examples/system/dynlink/main.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/system/dynlink/library/balls.c b/examples/system/dynlink/library/balls.c
index ef6993e..cfc7f58 100644
--- a/examples/system/dynlink/library/balls.c
+++ b/examples/system/dynlink/library/balls.c
@@ -38,7 +38,7 @@ static BALL_TYPE balls[MAX_BALLS];
static TIM_IMAGE ball_tim;
void init(CONTEXT *ctx) {
- GetTimInfo((u_long *) ball16c, &ball_tim);
+ GetTimInfo((const uint32_t *) ball16c, &ball_tim);
LoadImage(ball_tim.prect, ball_tim.paddr);
if (ball_tim.mode & 8)
diff --git a/examples/system/dynlink/main.c b/examples/system/dynlink/main.c
index 9b94b30..fff7aa5 100644
--- a/examples/system/dynlink/main.c
+++ b/examples/system/dynlink/main.c
@@ -108,13 +108,13 @@ void init_context(CONTEXT *ctx) {
// Set up the ordering tables and primitive buffers.
db = &(ctx->db[0]);
ctx->db_nextpri = db->p;
- ClearOTagR((u_long *) db->ot, OT_LEN);
+ ClearOTagR(db->ot, OT_LEN);
PutDrawEnv(&(db->draw));
//PutDispEnv(&(db->disp));
db = &(ctx->db[1]);
- ClearOTagR((u_long *) db->ot, OT_LEN);
+ ClearOTagR(db->ot, OT_LEN);
// Create a text stream at the top of the screen.
FntLoad(960, 0);
@@ -130,14 +130,14 @@ void display(CONTEXT *ctx) {
db = &(ctx->db[ctx->db_active]);
ctx->db_nextpri = db->p;
- ClearOTagR((u_long *) db->ot, OT_LEN);
+ ClearOTagR(db->ot, OT_LEN);
PutDrawEnv(&(db->draw));
PutDispEnv(&(db->disp));
SetDispMask(1);
db = &(ctx->db[!ctx->db_active]);
- DrawOTag((u_long *) &(db->ot[OT_LEN - 1]));
+ DrawOTag(&(db->ot[OT_LEN - 1]));
}
/* Symbol overriding example */