Is it possible (sure it is) to enable scrolling when using pspDebugScreenPrintf? I thought that it might be possible to move the content of VRAM "backwards" when the bottom of the screen is reached.
This might be a stupid and bad idea, but any feedback is appreciated.
pspDebugScreenPrintf and scrolling
-
- Posts: 81
- Joined: Mon Dec 19, 2005 4:09 pm
scrolling
There may be a more elegant way to do this, but without other suggestions... this might be a simple quick solution:
1. create an array of strings [1-xx] -- xx = whatever number of lines on the screen
2. add your debug statements to the end of the array each time
3. when you reach xx entries, move all the entries up one and add the newest entry in the last position.
4. clear the debug screen and reprint it each time.
This isn't the best solution I'm sure but it's a real fast way to do it without using any graphics or screen address manipulation.
David Beyer
1. create an array of strings [1-xx] -- xx = whatever number of lines on the screen
2. add your debug statements to the end of the array each time
3. when you reach xx entries, move all the entries up one and add the newest entry in the last position.
4. clear the debug screen and reprint it each time.
This isn't the best solution I'm sure but it's a real fast way to do it without using any graphics or screen address manipulation.
David Beyer
-
- Posts: 81
- Joined: Mon Dec 19, 2005 4:09 pm
..
If it's just for debug purposes and it's not going to be seen by end-users, it doesn't have to be pretty, just functional.
David Beyer
David Beyer