- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.double_buffering = TRUE;
- setup.direct_draw = !setup.double_buffering;
-#endif
- }
-#endif
-
- else if (y == 3)
- {
- if (setup.scroll_delay)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.scroll_delay = !setup.scroll_delay;
- }
- else if (y == 4)
- {
- if (setup.soft_scrolling)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.soft_scrolling = !setup.soft_scrolling;
- }
-#if 0
- else if (y == 5)
- {
- if (setup.fading)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.fading = !setup.fading;
- }
-#endif
- else if (y == 5 && video.fullscreen_available)
- {
- if (setup.fullscreen)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.fullscreen = !setup.fullscreen;
- }
- else if (y == 6)
- {
- if (setup.quick_doors)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.quick_doors = !setup.quick_doors;
- }
- else if (y == 7)
- {
- if (setup.autorecord)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.autorecord = !setup.autorecord;
- }
- else if (y == 8)
- {
- if (setup.team_mode)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.team_mode = !setup.team_mode;
- }
- else if (y == 9)
- {
- if (setup.handicap)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.handicap = !setup.handicap;
- }
- else if (y == 10)
- {
- if (setup.time_limit)
- DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
- else
- DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
- setup.time_limit = !setup.time_limit;
- }
- else if (y == 11)
- {
- game_status = SETUPINPUT;
- DrawSetupInputScreen();
- redraw = TRUE;
- }
- else if (y == pos_end - 1 || y == pos_end)
- {
- if (y == pos_end)
- SaveSetup();
-
- game_status = MAINMENU;
- DrawMainMenu();
- redraw = TRUE;
- }
- }
- }
- BackToFront();
-
- if (game_status==SETUP)
- DoAnimation();
-}
-
-#else
-
-void HandleSetupScreen(int mx, int my, int dx, int dy, int button)
-{
- static int choice = 0;
- static int redraw = TRUE;
- int x = (mx - SX) / 32;
- int y = (my - SY) / 32 - MENU_SCREEN_START_YPOS;
- int pos_start = SETUP_SCREEN_POS_START;
- int pos_empty1 = SETUP_SCREEN_POS_EMPTY1;
- int pos_empty2 = SETUP_SCREEN_POS_EMPTY2;
- int pos_end = SETUP_SCREEN_POS_END;
-
- if (button == MB_MENU_INITIALIZE)
- redraw = TRUE;
-
- if (redraw)
- {
- drawCursor(choice, FC_RED);
- redraw = FALSE;
- }
-
- if (button == MB_MENU_INITIALIZE)
- return;
-
- if (dx || dy)
- {
- if (dy)
- {
- x = 0;
- y = choice + dy;
- }
- else
- x = y = -1;
-
- if (y >= pos_empty1 && y <= pos_empty2)
- y = (dy > 0 ? pos_empty2 + 1 : pos_empty1 - 1);
-
- if (y < pos_start)
- y = pos_start;
- else if (y > pos_end)
- y = pos_end;
- }
-
- if (!mx && !my && !dx && !dy)
- {
- x = 0;
- y = choice;
- }
-
- if (dx == 1 && choice == 11)
- {
- game_status = SETUPINPUT;
- DrawSetupInputScreen();
- redraw = TRUE;
- }
-
- if (x == 0 && y >= pos_start && y <= pos_end &&
- !(y >= pos_empty1 && y <= pos_empty2))
- {
- if (button)
- {
- if (y != choice)
- {
- drawCursor(y, FC_RED);
- drawCursor(choice, FC_BLUE);
- }
- choice = y;
- }
- else
- {
- int yy = MENU_SCREEN_START_YPOS + y;
-
- if (y == 0 && audio.sound_available)