mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Rework internal module registration to happen in constructors.
This commit is contained in:
@@ -88,7 +88,8 @@ namespace sdl
|
||||
{
|
||||
|
||||
Window::Window()
|
||||
: open(false)
|
||||
: love::window::Window("love.window.sdl")
|
||||
, open(false)
|
||||
, mouseGrabbed(false)
|
||||
, window(nullptr)
|
||||
, glcontext(nullptr)
|
||||
@@ -1503,11 +1504,6 @@ void Window::requestAttention(bool continuous)
|
||||
// TODO: Linux?
|
||||
}
|
||||
|
||||
const char *Window::getName() const
|
||||
{
|
||||
return "love.window.sdl";
|
||||
}
|
||||
|
||||
} // sdl
|
||||
} // window
|
||||
} // love
|
||||
|
||||
@@ -130,8 +130,6 @@ public:
|
||||
|
||||
void requestAttention(bool continuous) override;
|
||||
|
||||
const char *getName() const override;
|
||||
|
||||
private:
|
||||
|
||||
struct ContextAttribs
|
||||
|
||||
Reference in New Issue
Block a user