-\r
- if (Inp.held[7]==1) LoopMode=8; // Right thumb = Toggle Menu\r
-\r
- return 0;\r
-}\r
-\r
-static int MenuRender()\r
-{\r
- WCHAR text[80]={0};\r
- wsprintfW(text,L"%.40S v%x.%.3x",AppName,PicoVer>>12,PicoVer&0xfff);\r
- FontSetColour(0x60c0ff);\r
- FontText(text,64,48);\r
-\r
- FileMenu.render();\r
-\r
- return 0;\r
-}\r
-*/\r
-\r
-// ----------------------------------------------------------------\r
-\r
-static int ModeUpdate()\r
-{\r
- if (Inp.held[14] && Inp.held[15] && Inp.held[12]==1) LoopQuit=1; // L+R+black to quit:\r
- if (Inp.button[4]>30 && Inp.button[5]>30) LoopQuit=1; // Start and back to quit\r
-\r
- if (LoopMode==8) { DoGame(); return 0; }\r
-\r
-// if (DSoundNext) memset(DSoundNext,0,PsndLen<<2);\r
-\r
-// if (LoopMode==2) { FileMenu.scan(); LoopMode++; return 0; }\r
-// if (LoopMode==3) { MenuUpdate(); return 0; }\r
-// if (LoopMode==4) { LightCalUpdate(); return 0; }\r
-\r
- LoopMode=2; // Unknown mode, go to rom menu\r
- return 0;\r
-}\r
-\r
-\r
-static int ModeRender()\r
-{\r
- DirectScreen();\r
-// if (LoopMode==3) MenuRender();\r
-// if (LoopMode==4) LightCalRender();\r
-\r
- return 0;\r
-}\r
-\r
-static void UpdateSound(int len)\r
-{\r
- while (DSoundUpdate() > 0) { Sleep(1); }\r
- while (DSoundUpdate()== 0) { }\r
+ if (is_40 != is_40_prev)\r
+ {\r
+ EmuScreenRect.left = is_40 ? 0 : 32;\r
+ EmuScreenRect.right = is_40 ? 320 : 256+32;\r
+ }\r
+ lock_to_1_1_prev = lock_to_1_1;\r
+ is_40_prev = is_40;\r