forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How would I center my text?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
cola_man



Joined: 31 Dec 2005
Posts: 1

PostPosted: Sat Dec 31, 2005 4:36 am    Post subject: How would I center my text? Reply with quote

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

Code:
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?
Back to top
View user's profile Send private message
weltall



Joined: 20 Feb 2004
Posts: 310

PostPosted: Sun Jan 01, 2006 12:35 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group