Subversion Repositories eduke32

Rev

Rev 3334 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3334 Rev 4644
Line 30... Line 30...
30
30
31
@implementation StartupWinController
31
@implementation StartupWinController
32
32
33
- (IBAction)alwaysShowClicked:(id)sender
33
- (IBAction)alwaysShowClicked:(id)sender
34
{
34
{
-
 
35
        UNREFERENCED_PARAMETER(sender);
35
}
36
}
36
37
37
- (IBAction)fullscreenClicked:(id)sender
38
- (IBAction)fullscreenClicked:(id)sender
38
{
39
{
-
 
40
        UNREFERENCED_PARAMETER(sender);
-
 
41
39
    // XXX: recalculate the video modes list to take into account the fullscreen status
42
    // XXX: recalculate the video modes list to take into account the fullscreen status
40
}
43
}
41
44
42
- (IBAction)cancel:(id)sender
45
- (IBAction)cancel:(id)sender
43
{
46
{
-
 
47
        UNREFERENCED_PARAMETER(sender);
-
 
48
44
    [nsapp abortModal];
49
    [nsapp abortModal];
45
}
50
}
46
51
47
- (IBAction)start:(id)sender
52
- (IBAction)start:(id)sender
48
{
53
{
-
 
54
        UNREFERENCED_PARAMETER(sender);
-
 
55
49
    // XXX: write the states of the form controls to their respective homes
56
    // XXX: write the states of the form controls to their respective homes
50
    [nsapp stopModal];
57
    [nsapp stopModal];
51
}
58
}
52
59
53
- (void)setupRunMode
60
- (void)setupRunMode
Line 144... Line 151...
144
    NSString *ns;
151
    NSString *ns;
145
152
146
    if (!s) return -1;
153
    if (!s) return -1;
147
    if (startwin == nil) return 1;
154
    if (startwin == nil) return 1;
148
155
149
    ns = [[NSString alloc] initWithCString:s];
156
    ns = [[NSString alloc] initWithUTF8String:s];
150
    [startwin putsMessage:ns];
157
    [startwin putsMessage:ns];
151
    [ns release];
158
    [ns release];
152
159
153
    return 0;
160
    return 0;
154
}
161
}
Line 158... Line 165...
158
    NSString *ns;
165
    NSString *ns;
159
166
160
    if (!s) return -1;
167
    if (!s) return -1;
161
    if (startwin == nil) return 1;
168
    if (startwin == nil) return 1;
162
169
163
    ns = [[NSString alloc] initWithCString:s];
170
    ns = [[NSString alloc] initWithUTF8String:s];
164
    [startwin setTitle:ns];
171
    [startwin setTitle:ns];
165
    [ns release];
172
    [ns release];
166
173
167
    return 0;
174
    return 0;
168
}
175
}
169
176
170
int startwin_idle(void *v)
177
int startwin_idle(void *v)
171
{
178
{
-
 
179
        UNREFERENCED_PARAMETER(v);
-
 
180
172
    if (startwin) [[startwin window] displayIfNeeded];
181
    if (startwin) [[startwin window] displayIfNeeded];
173
    return 0;
182
    return 0;
174
}
183
}
175
184
176
int startwin_run(void)
185
int startwin_run(void)