aboutsummaryrefslogtreecommitdiff
path: root/src/osx/graphics/quartz/Brush.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-26 16:07:53 +0800
committercrupest <crupest@outlook.com>2021-10-26 16:07:53 +0800
commit397843cda9e4161d3e92d8797f8012f478ce64f0 (patch)
treec04b1600fb60e5aca9e19ab21c2a52efedbc2bad /src/osx/graphics/quartz/Brush.cpp
parenta4dafa3e2918f2cc28657145e6b0afe7bcf1ca7b (diff)
downloadcru-397843cda9e4161d3e92d8797f8012f478ce64f0.tar.gz
cru-397843cda9e4161d3e92d8797f8012f478ce64f0.tar.bz2
cru-397843cda9e4161d3e92d8797f8012f478ce64f0.zip
...
Diffstat (limited to 'src/osx/graphics/quartz/Brush.cpp')
-rw-r--r--src/osx/graphics/quartz/Brush.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/osx/graphics/quartz/Brush.cpp b/src/osx/graphics/quartz/Brush.cpp
index 41e9d2c5..9daa8e13 100644
--- a/src/osx/graphics/quartz/Brush.cpp
+++ b/src/osx/graphics/quartz/Brush.cpp
@@ -20,11 +20,7 @@ void QuartzSolidColorBrush::SetColor(const Color& color) {
}
void QuartzSolidColorBrush::Select(CGContextRef context) {
- CGContextSaveGState(context);
-
CGContextSetStrokeColorWithColor(context, cg_color_);
CGContextSetFillColorWithColor(context, cg_color_);
-
- CGContextRestoreGState(context);
}
} // namespace cru::platform::graphics::osx::quartz