gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Another noob question.

#168754 - Chaos911 - Wed May 20, 2009 11:09 am

I have figured out how to print text to both the sub(Top) screen and the bottom screen of the DS.

But now i have another problem, how would printing text to each screen at the same time be achieved?

#168764 - gauauu - Wed May 20, 2009 10:08 pm

Maybe you need to rephrase your question...if you can write the text to both screens, then just write to both screens.

Assuming you've already created writeToTop() and writeToBottom():

Code:

void writeToBothScreens(int x, int y, char * text)
{
    writeToTop(x, y, text);
    writeToBottom(x, y, text);
}


Or maybe I'm missing what you mean by "at the same time"?

#168765 - vuurrobin - Wed May 20, 2009 10:20 pm

maybe he knows how to print to the top screen or the bottom screen, but not at the same time.

you might want to look at the print_both_screens example that comes with devkitPro.


I also recommand (to people in general) to say main and sub engine if you talk about the graphics hardware and top and bottom screen if you're talking about the actual screens. using things like main screen or bottom engine makes it harder to understand what you mean.

#168773 - Chaos911 - Thu May 21, 2009 9:43 am

Quote:

maybe he knows how to print to the top screen or the bottom screen, but not at the same time.


yes,that is what i meant.


I am able to print text to the top and bottom screen individually, but i was not aware of how to print to both screens at the same time.



Thanks for the help.