From b30f7f23a9856814e75a4c94f45bbecd40a9e73c Mon Sep 17 00:00:00 2001 From: tim h Date: Thu, 15 Dec 2022 21:15:50 -0600 Subject: [PATCH] brings back interrogate reticle --- js/ui/tool/interrogate.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/js/ui/tool/interrogate.js b/js/ui/tool/interrogate.js index 5e97375..209ec71 100644 --- a/js/ui/tool/interrogate.js +++ b/js/ui/tool/interrogate.js @@ -42,11 +42,23 @@ const interrogateTool = () => state.mousemovecb = (evn) => { state.erasePrevReticle(); - state.erasePrevReticle = _reticle_draw(evn, state, "Interrogate", { - toolTextStyle: "#AFA5", - sizeTextStyle: "#AFA5", - reticleStyle: "#AFAF", - }); + state.erasePrevReticle = _tool._reticle_draw( + getBoundingBox( + evn.x, + evn.y, + state.cursorSize, + state.cursorSize, + state.snapToGrid && basePixelCount + ), + "Interrogate", + { + w: stableDiffusionData.width, + h: stableDiffusionData.height, + }, + { + sizeTextStyle: "#AFA5", + } + ); }; state.redraw = () => {