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 > assigning main & sub screen

#46148 - spunky - Mon Jun 20, 2005 9:38 pm

Hey everyone..

I read that you can just assign which of the two screens are assigned main and sub screen, which is something I really need.. I need the framebuffer mode on the touchscreen.. how can I assign them?

Thanks a lot :)
Marius

#46150 - Mollusk - Mon Jun 20, 2005 9:45 pm

I guess you could just use the invert screen function in ndslib, not sure what it's name was though

#46151 - pepsiman - Mon Jun 20, 2005 9:52 pm

spunky wrote:
I read that you can just assign which of the two screens are assigned main and sub screen, which is something I really need.. I need the framebuffer mode on the touchscreen.. how can I assign them?

You don't need the framebuffer mode on the touchscreen, as you could use a 16bit extended rotation background in mode 5 instead.

If you don't want to do that, then the ndslib macro you want is lcdSwap().

#46152 - JimmyL - Mon Jun 20, 2005 9:53 pm

lcdSwap()
or
set POWER_CR |= 1<<15 when setting your power flags.

#46157 - spunky - Mon Jun 20, 2005 11:10 pm

thanks guys! that was exactly what I was looking for..
already thought about mode5, will it be faster as well?