#167508 - albinofrenchy - Mon Mar 16, 2009 6:10 am
Anyone else thing its a bug that if you initialize two consoles without passing in a PrintConsole parameter to either function, you get back the same pointer?
I just ran into this when switching back and forth between top and bottom screen consoles. I fixed it by creating my own consoles, but my libnds doesn't seem to have any functions to create new printconsoles, so I have things like this:
Any better way to do this? Am I in the minority in thinking this is unexpected behavior?
I just ran into this when switching back and forth between top and bottom screen consoles. I fixed it by creating my own consoles, but my libnds doesn't seem to have any functions to create new printconsoles, so I have things like this:
Code: |
bottomConsole = (PrintConsole*)malloc(sizeof(PrintConsole)); memcpy(bottomConsole, consoleGetDefault(), sizeof(PrintConsole)); bottomConsole = consoleInit(bottomConsole, 1,BgType_Text4bpp , BgSize_T_256x256, 0, 1, true, true); |
Any better way to do this? Am I in the minority in thinking this is unexpected behavior?