move more globals to PicoInterface
[picodrive.git] / platform / gizmondo / menu.c
index 232701a..51f032f 100644 (file)
@@ -1046,7 +1046,7 @@ static void menu_opt_cust_draw(const menu_entry *entry, int x, int y, void *para
                        break;\r
                case MA_OPT_SOUND_QUALITY:\r
                        str = (PicoIn.opt&0x08)?"stereo":"mono";\r
-                       text_out16(x, y, "Sound Quality:     %5iHz %s", PsndRate, str);\r
+                       text_out16(x, y, "Sound Quality:     %5iHz %s", PicoIn.sndRate, str);\r
                        break;\r
                case MA_OPT_REGION:\r
                        text_out16(x, y, "Region:              %s", me_region_name(PicoIn.regionOverride, PicoIn.autoRgnOrder));\r
@@ -1174,18 +1174,18 @@ static int menu_loop_options(void)
                                                }\r
                                                break;\r
                                        case MA_OPT_SOUND_QUALITY:\r
-                                               if ((inp & PBTN_RIGHT) && PsndRate == 44100 &&\r
+                                               if ((inp & PBTN_RIGHT) && PicoIn.sndRate == 44100 &&\r
                                                                !(PicoIn.opt&0x08))\r
                                                {\r
-                                                       PsndRate =  11025;\r
+                                                       PicoIn.sndRate =  11025;\r
                                                        PicoIn.opt |=  8;\r
-                                               } else if ((inp & PBTN_LEFT) && PsndRate == 11025 &&\r
+                                               } else if ((inp & PBTN_LEFT) && PicoIn.sndRate == 11025 &&\r
                                                                (PicoIn.opt&0x08) && !(PicoIn.AHW&1))\r
                                                {\r
-                                                       PsndRate =  44100;\r
+                                                       PicoIn.sndRate =  44100;\r
                                                        PicoIn.opt &= ~8;\r
                                                } else\r
-                                                       PsndRate = sndrate_prevnext(PsndRate, inp & PBTN_RIGHT);\r
+                                                       PicoIn.sndRate = sndrate_prevnext(PicoIn.sndRate, inp & PBTN_RIGHT);\r
                                                break;\r
                                        case MA_OPT_REGION:\r
                                                region_prevnext(inp & PBTN_RIGHT);\r