Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 12, 2013
1 parent 6d44cf7 commit 1fb4e22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -678,7 +678,7 @@ X11_GL_SetSwapInterval(_THIS, int interval)
* it has the wrong value cached. To work around it, we just run a no-op
* update to the current value.
*/
int currentInterval = _this, X11_GL_GetSwapInterval(_this);
int currentInterval = X11_GL_GetSwapInterval(_this);
_this->gl_data->glXSwapIntervalEXT(display, drawable, currentInterval);
_this->gl_data->glXSwapIntervalEXT(display, drawable, interval);

Expand Down
3 changes: 3 additions & 0 deletions src/video/x11/edid-parse.c
Expand Up @@ -603,6 +603,7 @@ dump_monitor_info (MonitorInfo *info)
case MDDI: interface = "MDDI"; break;
case DISPLAY_PORT: interface = "DisplayPort"; break;
case UNDEFINED: interface = "undefined"; break;
default: interface = "unknown"; break;
}
printf ("Interface: %s\n", interface);

Expand Down Expand Up @@ -631,6 +632,7 @@ dump_monitor_info (MonitorInfo *info)
case MONOCHROME: s = "monochrome"; break;
case RGB: s = "rgb"; break;
case OTHER_COLOR: s = "other color"; break;
default: s = "unknown"; break;
};

printf ("Color: %s\n", s);
Expand Down Expand Up @@ -731,6 +733,7 @@ dump_monitor_info (MonitorInfo *info)
case TWO_WAY_LEFT_ON_EVEN: s = "Two-way, Left on Even"; break;
case FOUR_WAY_INTERLEAVED: s = "Four-way Interleaved"; break;
case SIDE_BY_SIDE: s = "Side-by-Side"; break;
default: s = "unknown"; break;
}
printf (" Stereo: %s\n", s);

Expand Down

0 comments on commit 1fb4e22

Please sign in to comment.