tool name no longer renders and breaks things

tool name now functions okay when cursor has 0 size

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-06 23:09:30 -03:00
parent bdf6bb8913
commit de4823e749

View file

@ -751,7 +751,12 @@ const _reticle_draw = (evn, state, tool, style = {}) => {
uiCtx.textAlign = "left"; uiCtx.textAlign = "left";
uiCtx.fillStyle = style.toolTextStyle; uiCtx.fillStyle = style.toolTextStyle;
uiCtx.fillText(tool, bbvp.x + 10, bbvp.y + 10 + 20 * xshrink); uiCtx.fillText(
tool,
bbvp.x + 10,
bbvp.y + 10 + 20 * xshrink,
state.cursorSize
);
} }
// Draw width and height // Draw width and height