From c04dcc2e7d834218ef2d4194331e383402495ae1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 20:07:22 +0200 Subject: Adding upstream version 2:20.4+dfsg. Signed-off-by: Daniel Baumann --- xbmc/rendering/dx/RenderContext.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 xbmc/rendering/dx/RenderContext.h (limited to 'xbmc/rendering/dx/RenderContext.h') diff --git a/xbmc/rendering/dx/RenderContext.h b/xbmc/rendering/dx/RenderContext.h new file mode 100644 index 0000000..9878691 --- /dev/null +++ b/xbmc/rendering/dx/RenderContext.h @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2005-2018 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ + +#pragma once + +#if defined(TARGET_WINDOWS_DESKTOP) +#include "windowing/windows/WinSystemWin32DX.h" +#elif defined(TARGET_WINDOWS_STORE) +#include "windowing/win10/WinSystemWin10DX.h" +#endif +#include "ServiceBroker.h" + +namespace DX +{ +#if defined(TARGET_WINDOWS_DESKTOP) + __inline CWinSystemWin32DX* Windowing() + { + return dynamic_cast(CServiceBroker::GetRenderSystem()); + } +#elif defined(TARGET_WINDOWS_STORE) + __inline CWinSystemWin10DX* Windowing() + { + return dynamic_cast(CServiceBroker::GetRenderSystem()); + } +#endif +} -- cgit v1.2.3