aboutsummaryrefslogtreecommitdiff
path: root/examples/system
diff options
context:
space:
mode:
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 */