Skia AA and no AA bypass intermediate surface

This commit is contained in:
Yousef Khadadeh 2026-04-09 01:05:52 +03:00
parent 4b2ecf2fe6
commit 37c105bf5e
5 changed files with 39 additions and 66 deletions

View file

@ -53,7 +53,7 @@ void EyeDropperTool::input_mouse_button_on_canvas_callback(const InputManager::M
auto& selectingStrokeColor = drawP.world.main.toolConfig.eyeDropper.selectingStrokeColor;
if(button.button == InputManager::MouseButton::LEFT && button.down && !drawP.selection.is_being_transformed() && !drawP.world.main.g.gui.cursor_obstructed()) {
auto& surface = drawP.world.main.window.intermediateSurface;
auto& surface = drawP.world.main.window.nativeSurface;
int xPos = std::clamp<int>(button.pos.x(), 0, drawP.world.main.window.size.x() - 1);
int yPos = std::clamp<int>(button.pos.y(), 0, drawP.world.main.window.size.y() - 1);