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 

pspDebugScreen font width

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



Joined: 06 Jul 2005
Posts: 2

PostPosted: Mon Jul 11, 2005 12:15 pm    Post subject: pspDebugScreen font width Reply with quote

Is there a simple way to limit the included font to 6x8 pixels (5x7 plus a row and column of space)? If that was the case, you could fit a standard terminal's worth of characters on the screen (80 wide * 6 pixels = 480), which would be very helpful to a project of mine.

As it stands, since essentially all of the standard characters included in the font are this size, my program looks okay for the most part when I treat it as a 6x8 font. The problem arises when I try to write random characters on the screen because it overwrites an 8x8 block when it's writing a new character and since I have them spaced at 6x8, the character to the right gets partially overwritten with black. So if I could just limit the blitter to writing 6 columns instead of 8, that would be great.

Failing that, I could write my own text blitter I guess, but I don't see a pixel function in the pspsdk or something like pgGetVramAddr() like in the pg.c minilibrary. Any suggestions?

-abszero
Back to top
View user's profile Send private message
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Mon Jul 11, 2005 12:38 pm    Post subject: Reply with quote

from pspsdk/sdk/ge/pspge.h:

Code:
/** Get the address of VRAM (normally 0x04000000?)
  *
  * @return The base VRAM address
  */
u32 sceGeEdramGetAddr(void);


but it would be cooler if you figured out the Sony font stuff.
Back to top
View user's profile Send private message
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