mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-15 15:57:59 +00:00
3e9781033a
This prevents the window from being recreated when initializing a Metal renderer.
19 lines
340 B
C++
19 lines
340 B
C++
#pragma once
|
|
|
|
#include <SDL.h>
|
|
|
|
class StreamUtils
|
|
{
|
|
public:
|
|
static
|
|
Uint32 getPlatformWindowFlags();
|
|
|
|
static
|
|
void scaleSourceToDestinationSurface(SDL_Rect* src, SDL_Rect* dst);
|
|
|
|
static
|
|
bool getRealDesktopMode(int displayIndex, SDL_DisplayMode* mode);
|
|
|
|
static
|
|
int getDisplayRefreshRate(SDL_Window* window);
|
|
};
|