summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2023-01-06 10:26:43 -0500
committerFox Caminiti <fox@foxcam.net>2023-01-06 10:26:43 -0500
commit1de48570b220acc1ca7063e2a9cda1e89178c0f9 (patch)
tree1edd38bd7ad7f95f865793a9d0e54c62aa3bf37e /src/main.cpp
parenteebbdd012b0d156e9e92369585c6ad82ed3de371 (diff)
bad shape positioning
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
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,