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 

Undocumented function oslDrawTextBox in Brunni's OSLib

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



Joined: 25 Jul 2006
Posts: 1

PostPosted: Sat Jul 29, 2006 3:48 pm    Post subject: Undocumented function oslDrawTextBox in Brunni's OSLib Reply with quote

I've been working on a game using Brunni's "Old School Library". I found a function prototype in text.h called oslDrawTextBox that isn't mentioned anywhere in the documentation. Here is the prototype from text.h:

Code:
extern void oslDrawTextBox(int x0, int y0, int x1, int y1, const char *text, int format);


I was able to figure all of it out except for int format. I can position the text box and display text, but the text is tiny and has a forced black background on the characters (see screenshot). I've tried compiling with int format set to 0, 1, and 2, and with no noticable change for each.

I tried to contact Brunni via PM about this four days ago and have yet to receive a reply. Can anyone else tell me exactly how this parameter works, and how I might use it to improve the look of my text? Thanks.

By the way, pay no attention to Snake in that screenshot; this isn't a Metal Gear related game :). He's just there to test the portrait code.

Edit: Ok, I figured out how to convert and use my own fonts and correct the background color problem, but I'm still curious about this int format parameter.
_________________
Halcyon|Flow
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 -> PSP 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