How would I center my text?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
cola_man
Posts: 1
Joined: Sat Dec 31, 2005 4:32 am

How would I center my text?

Post by cola_man »

Hey I just started dev and have recently been getting into c/c++ programming and was wondering how would I center my text?

Code: Select all

scr_printf("test\n");
So far that is my code but I don't feel like spacing my text till it gets to the center is there a easier way?
weltall
Posts: 310
Joined: Fri Feb 20, 2004 1:56 am
Contact:

Post by weltall »

you could try this:
void scr_setXY(int x, int y);
by using also this for the y int scr_getY(void);
and then you scr_printf
Post Reply