Screenshots arent affected by screenshot tool UI

This commit is contained in:
Yousef Khadadeh 2025-10-08 07:13:58 +03:00
parent a940673a95
commit c595b13654

View file

@ -476,6 +476,7 @@ bool ScreenshotTool::prevent_undo_or_redo() {
}
void ScreenshotTool::draw(SkCanvas* canvas, const DrawData& drawData) {
if(!drawData.main->takingScreenshot) {
if(controls.selectionMode == 0) {
SkPaint paint1;
paint1.setColor4f({0.0f, 0.0f, 0.0f, 0.3f});
@ -512,3 +513,4 @@ void ScreenshotTool::draw(SkCanvas* canvas, const DrawData& drawData) {
}
}
}
}