#175011 - Kensai - Sun Aug 15, 2010 7:16 pm
Is there a full screen mode? Or is it possible to change the position of the 160x128 pixels window somehow?
#175012 - DiscoStew - Sun Aug 15, 2010 8:29 pm
Mode 5 is full-screen, but stretched.
_________________
DS - It's all about DiscoStew
#175013 - Kensai - Sun Aug 15, 2010 9:22 pm
Okay, but in the standard setting the 160x128 pixels window is located in the left upper corner of the screen. How do I stretch it to full-screen?
#175014 - DiscoStew - Sun Aug 15, 2010 9:49 pm
Ok, I think I may understand it now. I believe that it uses a bitmap form while using registers meant for BG2, so, I assume you could use functions for centering and scaling up the bitmap as BG2.
_________________
DS - It's all about DiscoStew
#175015 - Kensai - Sun Aug 15, 2010 11:17 pm
Which registers do you have to use if you want to center the screen? REG_BG2HOFS and REG_BG2VOFS do not work...
And how do you calculate the values for REG_BG2PA and REG_BG2PD?
#175016 - DiscoStew - Sun Aug 15, 2010 11:37 pm
Kensai wrote: |
Which registers do you have to use if you want to center the screen? REG_BG2HOFS and REG_BG2VOFS do not work...
And how do you calculate the values for REG_BG2PA and REG_BG2PD? |
I believe the HOFS and VOFS are for BGs that are set in text mode. What you're looking for is the REG_BG2X and REG_BG2Y.
As for calculating REG_BG2PA through REG_BG2PD, I think this area of the specifications should help you.
http://nocash.emubase.de/gbatek.htm#lcdiobgrotationscaling
_________________
DS - It's all about DiscoStew