Fixed OnEvent logic, Updated example
This commit is contained in:
parent
05c7cddfd3
commit
bf6b934b9b
4 changed files with 19 additions and 16 deletions
|
@ -7,7 +7,9 @@ class MyWindow :
|
|||
{
|
||||
public:
|
||||
MyWindow(Uint32 width, Uint32 height, const char* title) :
|
||||
RenderWindow(sdlu::Vector2u(width, height), title, NULL, NULL)
|
||||
RenderWindow(sdlu::Vector2u(width, height), title,
|
||||
SDL_WINDOW_RESIZABLE,
|
||||
NULL)
|
||||
{
|
||||
// Empty
|
||||
}
|
||||
|
@ -21,7 +23,7 @@ void sdlu::RenderWindow::OnCreate()
|
|||
bool sdlu::RenderWindow::OnResize()
|
||||
{
|
||||
std::cout << "Window was Resized!" << std::endl;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void sdlu::RenderWindow::OnClose()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue