fix: update canvas real-time
This commit is contained in:
@@ -168,7 +168,7 @@ static gboolean render(GtkGLArea* a, GdkGLContext* ctx, VektorCanvasRenderInfo*
|
||||
|
||||
// PASS 2 - draw selection quads
|
||||
if (vb.count > shape_vertex_count) {
|
||||
float time = g_get_monotonic_time() / 1000000.0f;
|
||||
float time = (g_get_monotonic_time() - renderInfo->startupTime) / 10000000.0f;
|
||||
|
||||
// re-fetch bbox (we know a shape is selected)
|
||||
VektorBBox bbox = vektor_primitive_get_bbox(
|
||||
|
||||
@@ -21,6 +21,7 @@ typedef struct VektorCanvas {
|
||||
} VektorCanvas;
|
||||
|
||||
typedef struct VektorCanvasRenderInfo {
|
||||
gint64 startupTime;
|
||||
VektorShapeBuffer* shapes;
|
||||
|
||||
// a pointer to appstate->selectedShape
|
||||
|
||||
Reference in New Issue
Block a user