1 |
berlac |
1.1 |
/* |
2 |
|
|
* dlgVideoSound.cpp - SDL GUI dialog for C64 video and sound options |
3 |
|
|
* |
4 |
|
|
* (C) 2006 Bernd Lachner |
5 |
|
|
* |
6 |
|
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
|
* it under the terms of the GNU General Public License as published by |
8 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
9 |
|
|
* (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* This program is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with this program; if not, write to the Free Software |
18 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#include "sysdeps.h" |
22 |
|
|
#include "sdlgui.h" |
23 |
|
|
|
24 |
|
|
#include "Prefs.h" |
25 |
|
|
|
26 |
|
|
enum VIDEOSOUNDDDLG { |
27 |
|
|
box_main, |
28 |
|
|
box_timing, |
29 |
|
|
text_timing, |
30 |
|
|
text_line_cpu, |
31 |
|
|
LINE_CPU, |
32 |
|
|
LINE_UP_CPU, |
33 |
|
|
LINE_DOWN_CPU, |
34 |
|
|
text_bad_line_cpu, |
35 |
|
|
BAD_LINE_CPU, |
36 |
|
|
BAD_LINE_UP_CPU, |
37 |
|
|
BAD_LINE_DOWN_CPU, |
38 |
|
|
text_line_cia, |
39 |
|
|
LINE_CIA, |
40 |
|
|
LINE_UP_CIA, |
41 |
|
|
LINE_DOWN_CIA, |
42 |
|
|
text_line_1541, |
43 |
|
|
LINE_1541, |
44 |
|
|
LINE_UP_1541, |
45 |
|
|
LINE_DOWN_1541, |
46 |
|
|
box_advancedoptions, |
47 |
|
|
text_advancedoptions, |
48 |
|
|
CLEAR_CIA_ICR, |
49 |
|
|
OK, |
50 |
|
|
CANCEL |
51 |
|
|
}; |
52 |
|
|
|
53 |
|
|
/* The keyboard dialog: */ |
54 |
|
|
/* Spalte, Zeile, Länge, Höhe*/ |
55 |
|
|
static SGOBJ videosounddlg[] = |
56 |
|
|
{ |
57 |
|
|
{ SGBOX, SG_BACKGROUND, 0, 0,0, 35,20, NULL }, |
58 |
|
|
{ SGBOX, 0, 0, 1,2, 33, 7, NULL }, |
59 |
|
|
{ SGTEXT, 0, 0, 2, 1, 15, 1, " Video Options"}, |
60 |
|
|
{ SGCHECKBOX, SG_SELECTABLE, 0, 2, 3, 30, 1, "Display Sprites"}, |
61 |
|
|
{ SGCHECKBOX, SG_SELECTABLE, 0, 2, 5, 30, 1, "Detect Sprite Collisions"}, |
62 |
|
|
|
63 |
|
|
{ SGBOX, 0, 0, 1, 11, 33, 5, NULL }, |
64 |
|
|
{ SGTEXT, 0, 0, 2, 10, 15, 1, " Sound Options"}, |
65 |
|
|
{ SGTEXT, 0, 0, 2, 12, 10, 1, "Sound Emu:"}, |
66 |
|
|
{ SGCHECKBOX, SG_SELECTABLE|SG_RADIO, 0, 13, 12, 12, 1, "Off" }, |
67 |
|
|
{ SGCHECKBOX, SG_SELECTABLE|SG_RADIO, 0, 20, 12, 20,1, "Software" }, |
68 |
|
|
{ SGCHECKBOX, SG_SELECTABLE, 0, 2, 14, 30, 1, "Enable SID Filters"}, |
69 |
|
|
|
70 |
|
|
{SGBUTTON, SG_SELECTABLE|SG_EXIT|SG_DEFAULT, 0, 1, 18, 6, 1, "OK"}, |
71 |
|
|
{SGBUTTON, SG_SELECTABLE|SG_EXIT, 0, 9, 18, 6, 1, "Cancel"}, |
72 |
|
|
|
73 |
|
|
{ -1, 0, 0, 0,0, 0,0, NULL } |
74 |
|
|
}; |
75 |
|
|
|
76 |
|
|
void Dialog_VideoSound(Prefs &prefs) |
77 |
|
|
{ |
78 |
|
|
switch (SDLGui_DoDialog(videosounddlg)) |
79 |
|
|
{ |
80 |
|
|
} |
81 |
|
|
} |
82 |
|
|
|