Home
last modified time | relevance | path

Searched refs:sdlMode (Results 1 – 7 of 7) sorted by relevance

/dports/emulators/stella/stella-6.6/src/common/
H A DFBBackendSDL2.cxx348 SDL_DisplayMode sdlMode; in adaptRefreshRate() local
350 if(SDL_GetCurrentDisplayMode(displayIndex, &sdlMode) != 0) in adaptRefreshRate()
356 const int currentRefreshRate = sdlMode.refresh_rate; in adaptRefreshRate()
374 sdlMode.refresh_rate = wantedRefreshRate * m; in adaptRefreshRate()
375 if(SDL_GetClosestDisplayMode(displayIndex, &sdlMode, &closestSdlMode) == nullptr) in adaptRefreshRate()
380 factor = std::min(float(sdlMode.refresh_rate) / sdlMode.refresh_rate, in adaptRefreshRate()
381 float(sdlMode.refresh_rate) / (sdlMode.refresh_rate - 1)); in adaptRefreshRate()
522 SDL_DisplayMode sdlMode; in refreshRate() local
524 if(SDL_GetCurrentDisplayMode(displayIndex, &sdlMode) == 0) in refreshRate()
525 return sdlMode.refresh_rate; in refreshRate()
/dports/emulators/mess/mame-mame0226/3rdparty/SDL2/src/video/winrt/
H A DSDL_winrtvideo.cpp202 WINRT_DXGIModeToSDLDisplayMode(const DXGI_MODE_DESC * dxgiMode, SDL_DisplayMode * sdlMode) in WINRT_DXGIModeToSDLDisplayMode() argument
204 SDL_zerop(sdlMode); in WINRT_DXGIModeToSDLDisplayMode()
205 sdlMode->w = dxgiMode->Width; in WINRT_DXGIModeToSDLDisplayMode()
206 sdlMode->h = dxgiMode->Height; in WINRT_DXGIModeToSDLDisplayMode()
207 sdlMode->refresh_rate = dxgiMode->RefreshRate.Numerator / dxgiMode->RefreshRate.Denominator; in WINRT_DXGIModeToSDLDisplayMode()
208 sdlMode->format = D3D11_DXGIFormatToSDLPixelFormat(dxgiMode->Format); in WINRT_DXGIModeToSDLDisplayMode()
297 SDL_DisplayMode sdlMode; in WINRT_AddDisplaysForOutput() local
298 WINRT_DXGIModeToSDLDisplayMode(&dxgiModes[i], &sdlMode); in WINRT_AddDisplaysForOutput()
299 SDL_AddDisplayMode(&display, &sdlMode); in WINRT_AddDisplaysForOutput()
/dports/emulators/mame/mame-mame0226/3rdparty/SDL2/src/video/winrt/
H A DSDL_winrtvideo.cpp202 WINRT_DXGIModeToSDLDisplayMode(const DXGI_MODE_DESC * dxgiMode, SDL_DisplayMode * sdlMode) in WINRT_DXGIModeToSDLDisplayMode() argument
204 SDL_zerop(sdlMode); in WINRT_DXGIModeToSDLDisplayMode()
205 sdlMode->w = dxgiMode->Width; in WINRT_DXGIModeToSDLDisplayMode()
206 sdlMode->h = dxgiMode->Height; in WINRT_DXGIModeToSDLDisplayMode()
207 sdlMode->refresh_rate = dxgiMode->RefreshRate.Numerator / dxgiMode->RefreshRate.Denominator; in WINRT_DXGIModeToSDLDisplayMode()
208 sdlMode->format = D3D11_DXGIFormatToSDLPixelFormat(dxgiMode->Format); in WINRT_DXGIModeToSDLDisplayMode()
297 SDL_DisplayMode sdlMode; in WINRT_AddDisplaysForOutput() local
298 WINRT_DXGIModeToSDLDisplayMode(&dxgiModes[i], &sdlMode); in WINRT_AddDisplaysForOutput()
299 SDL_AddDisplayMode(&display, &sdlMode); in WINRT_AddDisplaysForOutput()
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/video/winrt/
H A DSDL_winrtvideo.cpp202 WINRT_DXGIModeToSDLDisplayMode(const DXGI_MODE_DESC * dxgiMode, SDL_DisplayMode * sdlMode) in WINRT_DXGIModeToSDLDisplayMode() argument
204 SDL_zerop(sdlMode); in WINRT_DXGIModeToSDLDisplayMode()
205 sdlMode->w = dxgiMode->Width; in WINRT_DXGIModeToSDLDisplayMode()
206 sdlMode->h = dxgiMode->Height; in WINRT_DXGIModeToSDLDisplayMode()
207 sdlMode->refresh_rate = dxgiMode->RefreshRate.Numerator / dxgiMode->RefreshRate.Denominator; in WINRT_DXGIModeToSDLDisplayMode()
208 sdlMode->format = D3D11_DXGIFormatToSDLPixelFormat(dxgiMode->Format); in WINRT_DXGIModeToSDLDisplayMode()
297 SDL_DisplayMode sdlMode; in WINRT_AddDisplaysForOutput() local
298 WINRT_DXGIModeToSDLDisplayMode(&dxgiModes[i], &sdlMode); in WINRT_AddDisplaysForOutput()
299 SDL_AddDisplayMode(&display, &sdlMode); in WINRT_AddDisplaysForOutput()
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/SDL/src/video/winrt/
H A DSDL_winrtvideo.cpp202 WINRT_DXGIModeToSDLDisplayMode(const DXGI_MODE_DESC * dxgiMode, SDL_DisplayMode * sdlMode) in WINRT_DXGIModeToSDLDisplayMode() argument
204 SDL_zerop(sdlMode); in WINRT_DXGIModeToSDLDisplayMode()
205 sdlMode->w = dxgiMode->Width; in WINRT_DXGIModeToSDLDisplayMode()
206 sdlMode->h = dxgiMode->Height; in WINRT_DXGIModeToSDLDisplayMode()
207 sdlMode->refresh_rate = dxgiMode->RefreshRate.Numerator / dxgiMode->RefreshRate.Denominator; in WINRT_DXGIModeToSDLDisplayMode()
208 sdlMode->format = D3D11_DXGIFormatToSDLPixelFormat(dxgiMode->Format); in WINRT_DXGIModeToSDLDisplayMode()
297 SDL_DisplayMode sdlMode; in WINRT_AddDisplaysForOutput() local
298 WINRT_DXGIModeToSDLDisplayMode(&dxgiModes[i], &sdlMode); in WINRT_AddDisplaysForOutput()
299 SDL_AddDisplayMode(&display, &sdlMode); in WINRT_AddDisplaysForOutput()
/dports/x11/controllermap/SDL2-2.0.18/src/video/winrt/
H A DSDL_winrtvideo.cpp269 WINRT_DXGIModeToSDLDisplayMode(const DXGI_MODE_DESC * dxgiMode, SDL_DisplayMode * sdlMode) in WINRT_DXGIModeToSDLDisplayMode() argument
271 SDL_zerop(sdlMode); in WINRT_DXGIModeToSDLDisplayMode()
272 sdlMode->w = dxgiMode->Width; in WINRT_DXGIModeToSDLDisplayMode()
273 sdlMode->h = dxgiMode->Height; in WINRT_DXGIModeToSDLDisplayMode()
274 sdlMode->refresh_rate = dxgiMode->RefreshRate.Numerator / dxgiMode->RefreshRate.Denominator; in WINRT_DXGIModeToSDLDisplayMode()
275 sdlMode->format = D3D11_DXGIFormatToSDLPixelFormat(dxgiMode->Format); in WINRT_DXGIModeToSDLDisplayMode()
364 SDL_DisplayMode sdlMode; in WINRT_AddDisplaysForOutput() local
365 WINRT_DXGIModeToSDLDisplayMode(&dxgiModes[i], &sdlMode); in WINRT_AddDisplaysForOutput()
366 SDL_AddDisplayMode(&display, &sdlMode); in WINRT_AddDisplaysForOutput()
/dports/devel/sdl20/SDL2-2.0.18/src/video/winrt/
H A DSDL_winrtvideo.cpp269 WINRT_DXGIModeToSDLDisplayMode(const DXGI_MODE_DESC * dxgiMode, SDL_DisplayMode * sdlMode) in WINRT_DXGIModeToSDLDisplayMode() argument
271 SDL_zerop(sdlMode); in WINRT_DXGIModeToSDLDisplayMode()
272 sdlMode->w = dxgiMode->Width; in WINRT_DXGIModeToSDLDisplayMode()
273 sdlMode->h = dxgiMode->Height; in WINRT_DXGIModeToSDLDisplayMode()
274 sdlMode->refresh_rate = dxgiMode->RefreshRate.Numerator / dxgiMode->RefreshRate.Denominator; in WINRT_DXGIModeToSDLDisplayMode()
275 sdlMode->format = D3D11_DXGIFormatToSDLPixelFormat(dxgiMode->Format); in WINRT_DXGIModeToSDLDisplayMode()
364 SDL_DisplayMode sdlMode; in WINRT_AddDisplaysForOutput() local
365 WINRT_DXGIModeToSDLDisplayMode(&dxgiModes[i], &sdlMode); in WINRT_AddDisplaysForOutput()
366 SDL_AddDisplayMode(&display, &sdlMode); in WINRT_AddDisplaysForOutput()