mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
macOS build fix
git-svn-id: https://svn.eduke32.com/eduke32@6855 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e682986e69
commit
b932485a1d
2 changed files with 7 additions and 7 deletions
|
@ -424,7 +424,7 @@ static struct {
|
|||
}
|
||||
|
||||
|
||||
mode2d = checkvideomode(&xdim2d, &ydim2d, bpp2d, fullscreen, 1);
|
||||
mode2d = videoCheckMode(&xdim2d, &ydim2d, bpp2d, fullscreen, 1);
|
||||
|
||||
[modeslist2d release];
|
||||
[videoMode2DPUButton removeAllItems];
|
||||
|
@ -443,12 +443,12 @@ static struct {
|
|||
if (idx2d >= 0) [videoMode2DPUButton selectItemAtIndex:idx2d];
|
||||
|
||||
|
||||
mode3d = checkvideomode(&xdim, &ydim, bpp, fullscreen, 1);
|
||||
mode3d = videoCheckMode(&xdim, &ydim, bpp, fullscreen, 1);
|
||||
if (mode3d < 0) {
|
||||
int i, cd[] = { 32, 24, 16, 15, 8, 0 };
|
||||
for (i=0; cd[i]; ) { if (cd[i] >= bpp) i++; else break; }
|
||||
for ( ; cd[i]; i++) {
|
||||
mode3d = checkvideomode(&xdim, &ydim, cd[i], fullscreen, 1);
|
||||
mode3d = videoCheckMode(&xdim, &ydim, cd[i], fullscreen, 1);
|
||||
if (mode3d < 0) continue;
|
||||
break;
|
||||
}
|
||||
|
@ -511,7 +511,7 @@ static struct {
|
|||
|
||||
- (void)setupRunMode
|
||||
{
|
||||
getvalidmodes();
|
||||
videoGetModes();
|
||||
|
||||
[fullscreenButton setState: (settings.fullscreen ? NSOnState : NSOffState)];
|
||||
[alwaysShowButton setState: (settings.forcesetup ? NSOnState : NSOffState)];
|
||||
|
|
|
@ -442,12 +442,12 @@ static struct {
|
|||
}
|
||||
|
||||
}
|
||||
mode3d = checkvideomode(&xdim, &ydim, bpp, fullscreen, 1);
|
||||
mode3d = videoCheckMode(&xdim, &ydim, bpp, fullscreen, 1);
|
||||
if (mode3d < 0) {
|
||||
int i, cd[] = { 32, 24, 16, 15, 8, 0 };
|
||||
for (i=0; cd[i]; ) { if (cd[i] >= bpp) i++; else break; }
|
||||
for ( ; cd[i]; i++) {
|
||||
mode3d = checkvideomode(&xdim, &ydim, cd[i], fullscreen, 1);
|
||||
mode3d = videoCheckMode(&xdim, &ydim, cd[i], fullscreen, 1);
|
||||
if (mode3d < 0) continue;
|
||||
break;
|
||||
}
|
||||
|
@ -508,7 +508,7 @@ static struct {
|
|||
|
||||
- (void)setupRunMode
|
||||
{
|
||||
getvalidmodes();
|
||||
videoGetModes();
|
||||
|
||||
[fullscreenButton setState: (settings.fullscreen ? NSOnState : NSOffState)];
|
||||
[alwaysShowButton setState: (settings.forcesetup ? NSOnState : NSOffState)];
|
||||
|
|
Loading…
Reference in a new issue