diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 27a985e..e9cbf32 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,6 +54,7 @@ extern "C" { #include "stable_diffusion.h" #endif #include "memory.h" +#include "nanovg.h" #include "main.h" #include "ffmpeg_backend.h" @@ -441,7 +442,9 @@ Render_Comp(project_data *File, project_state *State, memory *Memory, sorted_fil } if (Layer->IsShapeLayer) { - Layer_UpdateMasksEffects(State, Layer, Memory, RenderAddress, Comp->Width, Comp->Height, Comp->BytesPerPixel, &Width, &Height); + Layer_UpdateMasksEffects(State, Layer, Memory, RenderAddress, Comp->Width, Comp->Height, Comp->BytesPerPixel); + Width = Layer->Shape.Width; + Height = Layer->Shape.Height; rectangle RenderRegion = { 0, 0, Comp->Width, Comp->Height }; direct_info Info = { (real32)Comp->Width, (real32)Comp->Height, (real32)Comp->BytesPerPixel, (real32)Comp->Width * Comp->BytesPerPixel, Bitmap_ByteInfo(Comp->BytesPerPixel), UI->Color.a, blend_normal, |