mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix a couple of warnings
This commit is contained in:
parent
83f0901c17
commit
d86b431860
1 changed files with 7 additions and 7 deletions
|
@ -156,12 +156,12 @@ VID_Init (unsigned char *palette)
|
||||||
|
|
||||||
for (j = 0; j < 5; j++) {
|
for (j = 0; j < 5; j++) {
|
||||||
int rgba[5][4] = {
|
int rgba[5][4] = {
|
||||||
8, 8, 8, 0,
|
{8, 8, 8, 0},
|
||||||
8, 8, 8, 8,
|
{8, 8, 8, 8},
|
||||||
5, 6, 5, 0,
|
{5, 6, 5, 0},
|
||||||
5, 5, 5, 0,
|
{5, 5, 5, 0},
|
||||||
5, 5, 5, 1
|
{5, 5, 5, 1},
|
||||||
}
|
};
|
||||||
|
|
||||||
SDL_GL_SetAttribute (SDL_GL_RED_SIZE, rgba[j][0]);
|
SDL_GL_SetAttribute (SDL_GL_RED_SIZE, rgba[j][0]);
|
||||||
SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, rgba[j][1]);
|
SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, rgba[j][1]);
|
||||||
|
@ -170,7 +170,7 @@ VID_Init (unsigned char *palette)
|
||||||
|
|
||||||
for (i = 32; i >= 16; i -= 8) {
|
for (i = 32; i >= 16; i -= 8) {
|
||||||
SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, i);
|
SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, i);
|
||||||
if (screen = SDL_SetVideoMode (scr_width, scr_height, 0, flags))
|
if ((screen = SDL_SetVideoMode (scr_width, scr_height, 0, flags)))
|
||||||
goto success;
|
goto success;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue