summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/main.h b/main.h
index 9630faf..4068966 100644
--- a/main.h
+++ b/main.h
@@ -263,7 +263,7 @@ struct brush_state
void *PaintBuffer;
void *TransientBitmap;
uint32 LayerToPaint_Index = -1;
- rectangle CacheBounds;
+ rectangle CacheBounds = { 99999, 99999, -99999, -99999 };
};
enum interact_type
@@ -316,7 +316,7 @@ enum hotkey_input
struct project_state
{
- bool32 UpdateKeyframes = 1;
+ bool32 UpdateKeyframes = 0;
bool32 UpdateFrame = 1; // only refreshes frame; set UpdateKeyframes to update animation
bool32 DebugDisableCache = 1;
@@ -328,12 +328,17 @@ struct project_state
pen_state Pen = {};
brush_state Brush;
+#if STABLE
sd_state SD;
char JSONPayload[1024*1024*4];
int32 CurlActive = 0;
real32 SDPercentDone;
real32 SDTimeEstimate;
real64 SDTimer;
+#endif
+
+ int32 PreviewLayer = -1;
+ int32 PreviewSource = -1;
hotkey_input HotkeyInput;
@@ -547,6 +552,8 @@ struct direct_info {
blend_mode BlendMode;
rectangle ClipRect;
void *SourceBuffer;
+
+ bool32 SwapActive;
};
struct brush_info {
@@ -573,6 +580,7 @@ struct brush_info {
enum render_type {
render_type_main,
render_type_notransform,
+ render_type_notransform_swap,
render_type_brush
};