pspdegugscreen Qs

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

pspdegugscreen Qs

Post by Art »

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

Code: Select all

	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.
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

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.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

Well that explains a lot... I think that fixes me up actually.
THanx :)
Post Reply