mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
f24893bcb1
* Prepare to update deps/switchres * Squashed 'deps/switchres/' content from commit ca72648b32 git-subtree-dir: deps/switchres git-subtree-split: ca72648b3253eca8c5addf64d1e4aa1c43f5db94 * Add CRT modeswitching to KMS Display the real refresh rate Enable the CRT SwitchRes menu Add another switchres.ini path for Lakka
33 lines
785 B
C++
33 lines
785 B
C++
/**************************************************************
|
|
|
|
display_linux.h - Display manager for Linux
|
|
|
|
---------------------------------------------------------
|
|
|
|
Switchres Modeline generation engine for emulation
|
|
|
|
License GPL-2.0+
|
|
Copyright 2010-2021 Chris Kennedy, Antonio Giner,
|
|
Alexandre Wodarczyk, Gil Delescluse
|
|
|
|
**************************************************************/
|
|
|
|
#include "display.h"
|
|
#include "SDL.h"
|
|
#include "SDL_syswm.h"
|
|
|
|
class sdl2_display : public display_manager
|
|
{
|
|
public:
|
|
sdl2_display(display_settings *ds);
|
|
~sdl2_display();
|
|
bool init(void* pf_data);
|
|
bool set_mode(modeline *mode);
|
|
|
|
private:
|
|
SDL_Window* m_sdlwindow = NULL;
|
|
|
|
bool get_desktop_mode();
|
|
int get_available_video_modes();
|
|
};
|