Make it such that resizing the canvas works.

This commit is contained in:
2025-05-09 14:22:50 -04:00
parent 6b23290c14
commit ebf6e39a7d
3 changed files with 11 additions and 4 deletions

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
/.idea
/.cache
/.ccls-cache
/compile_commands.json
/cmake-build-debug
/build

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.30)
cmake_minimum_required(VERSION 3.18..3.30)
project(FractalInspector
VERSION 1.0

View File

@@ -395,12 +395,13 @@ bool FractalInspectorApp::Open() {
void FractalInspectorApp::PropagateWindowSize() {
auto size = GetSize();
Vector2i vSize = Vector2i(size.x, size.y);
if (vSize != canvas->GetDimensions())
canvas->Resize(vSize);
JGL::Update(vSize);
scene->SetViewportSize(Vector2(vSize));
console->MaxSize(Vector2(GetWidth()-10, GetHeight()-10));
// TODO: Causes the shader canvas to not appear...?
//canvas->Resize(vSize);
}