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 

pspdegugscreen Qs

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



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun Mar 26, 2006 8:26 am    Post subject: pspdegugscreen Qs Reply with quote

Hi Guys,
I am having some trouble coding text movement in the debug screen
where I think it should be possible.

Code:

   pspDebugScreenSetXY(0, 160);
   printf("                   YYYYYYYYYYYYYYYYYYYYYYYYYYYYY");
   pspDebugScreenSetXY(0, 150);
   printf("                   XXXXXXXXXXXXXXXXXXXXX");


Why does this print one line over the other when
I set two different positions? : XXXXXXXXXXXXXXXXXXXXXYYYYY

Also, the variable/constant in Y seems to reference the screen from
botton to top. isn't this odd?

Is there any documentation re debug screen commands? I know there are a few of them I have used.
Cheers, Art.
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Sun Mar 26, 2006 9:28 am    Post subject: Reply with quote

Note that the X,Y coordinates given are NOT pixelcoordinates, but char/line coordinates.
So setting it to (0,150) will print to the 150th line (~150*10 = 1500 pixel) wrapping around when over the bounds.
Back to top
View user's profile Send private message Visit poster's website
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun Mar 26, 2006 9:36 am    Post subject: Reply with quote

Well that explains a lot... I think that fixes me up actually.
THanx :)
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