| 1684 | } |
| 1685 | |
| 1686 | bool CGraphicsBackend_SDL_GL::UpdateDisplayMode(int Index) |
| 1687 | { |
| 1688 | SDL_DisplayMode DisplayMode; |
| 1689 | if(SDL_GetDesktopDisplayMode(Index, &DisplayMode) < 0) |
| 1690 | { |
| 1691 | log_error("gfx", "Unable to get desktop display mode of screen %d: %s", Index, SDL_GetError()); |
| 1692 | return false; |
| 1693 | } |
| 1694 | |
| 1695 | g_Config.m_GfxScreen = Index; |
| 1696 | g_Config.m_GfxDesktopWidth = DisplayMode.w; |
| 1697 | g_Config.m_GfxDesktopHeight = DisplayMode.h; |
| 1698 | return true; |
| 1699 | } |
| 1700 | |
| 1701 | int CGraphicsBackend_SDL_GL::GetWindowScreen() |
| 1702 | { |