aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/cairo
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-06-08 16:45:30 +0800
committercrupest <crupest@outlook.com>2022-06-08 16:45:30 +0800
commit0888ee514af093bcfa17de6efc4d3693a34de52d (patch)
treef97dbcde81b0c644f8a0ac77e173da2a77f6aea9 /include/cru/platform/graphics/cairo
parent1e5e914f40503d2a936d1b7db56fcff6d1f8514e (diff)
downloadcru-0888ee514af093bcfa17de6efc4d3693a34de52d.tar.gz
cru-0888ee514af093bcfa17de6efc4d3693a34de52d.tar.bz2
cru-0888ee514af093bcfa17de6efc4d3693a34de52d.zip
...
Diffstat (limited to 'include/cru/platform/graphics/cairo')
-rw-r--r--include/cru/platform/graphics/cairo/CairoPainter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/cairo/CairoPainter.h b/include/cru/platform/graphics/cairo/CairoPainter.h
index 3f6e6e24..95b09d2a 100644
--- a/include/cru/platform/graphics/cairo/CairoPainter.h
+++ b/include/cru/platform/graphics/cairo/CairoPainter.h
@@ -45,6 +45,10 @@ class CairoPainter : public CairoResource, public virtual IPainter {
void EndDraw() override;
private:
+ void CheckValidation();
+
+ bool valid_ = true;
+
cairo_t* cairo_;
bool auto_release_;
};