Skip to content

Commit

Permalink
No unnamed type on libSDK surface
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasMagnus committed Nov 16, 2023
1 parent 531f3a4 commit 83b8048
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/include/CL/SDK/InteropWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ namespace cl {
namespace sdk {
class SDKCPP_EXPORT InteropWindow : public sf::Window {
public:
using Style = std::underlying_type_t<decltype(sf::Style::Default)>;

explicit InteropWindow(
sf::VideoMode mode, const sf::String& title,
decltype(sf::Style::Default) style = sf::Style::Default,
Style style = sf::Style::Default,
const sf::ContextSettings& settings = sf::ContextSettings{},
cl_uint platform_id = 0, cl_uint device_id = 0,
cl_bitfield device_type = CL_DEVICE_TYPE_DEFAULT);
Expand Down
3 changes: 1 addition & 2 deletions lib/src/SDK/InteropWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
#include <CL/SDK/InteropContext.hpp>

cl::sdk::InteropWindow::InteropWindow(sf::VideoMode mode,
const sf::String& title,
decltype(sf::Style::Default) style,
const sf::String& title, Style style,
const sf::ContextSettings& settings,
cl_uint platform_id, cl_uint device_id,
cl_bitfield device_type)
Expand Down

0 comments on commit 83b8048

Please sign in to comment.