More resizing

This commit is contained in:
James Grogan 2022-11-14 15:31:38 +00:00
parent 9ade0e2d4b
commit be94bf0185
11 changed files with 44 additions and 3 deletions

View file

@ -15,6 +15,8 @@
#include "Screen.h"
#include "Image.h"
#include <iostream>
namespace mt
{
@ -41,6 +43,11 @@ void Window::setSize(unsigned width, unsigned height)
{
DrawingSurface::setSize(width, height);
mWidget->setBounds(width, height);
if (mPlatformWindow)
{
mPlatformWindow->onResize(width, height);
}
}
void Window::clearPlatformWindow()