| View previous topic :: View next topic |
| Author |
Message |
frodemed
Joined: 05 Aug 2005 Posts: 8
|
Posted: Fri Dec 23, 2005 8:32 am Post subject: pspDebugScreenPrintf and scrolling |
|
|
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. |
|
| Back to top |
|
 |
dbeyer3069
Joined: 19 Dec 2005 Posts: 81
|
Posted: Sat Dec 24, 2005 3:51 am Post subject: 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 |
|
| Back to top |
|
 |
frodemed
Joined: 05 Aug 2005 Posts: 8
|
Posted: Sat Dec 24, 2005 7:04 am Post subject: scrolling |
|
|
I actually thought about using an array and reprinting the whole array each time a scrolling is needed, but didn't think it was fast enough.
However, I will try it out now :) Thanks! |
|
| Back to top |
|
 |
dbeyer3069
Joined: 19 Dec 2005 Posts: 81
|
Posted: Sat Dec 24, 2005 12:36 pm Post subject: .. |
|
|
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 |
|
| Back to top |
|
 |
|