diff --git a/app/components/Common/Bars.vue b/app/components/Common/Bars.vue index e8e5925..361f83d 100644 --- a/app/components/Common/Bars.vue +++ b/app/components/Common/Bars.vue @@ -12,6 +12,8 @@ const props = withDefaults( }, ); +const { onRender } = useScreen(); + const app = useAppStore(); const { assets } = useAssets(); @@ -19,7 +21,7 @@ const BAR_WIDTH = 256; const BAR_HEIGHT = 24; const TITLE_Y = 5; -useRender((ctx) => { +onRender((ctx) => { ctx.globalAlpha = props.opacity; // top bar diff --git a/app/components/Common/ButtonSelector.vue b/app/components/Common/ButtonSelector.vue index d7e4422..08d445f 100644 --- a/app/components/Common/ButtonSelector.vue +++ b/app/components/Common/ButtonSelector.vue @@ -9,6 +9,8 @@ const props = withDefaults( }, ); +const { onRender } = useScreen(); + const app = useAppStore(); const { assets } = useAssets(); @@ -17,7 +19,7 @@ const CORNER_SIZE = 11; let [currentX, currentY, currentWidth, currentHeight] = props.rect; -useRender((ctx) => { +onRender((ctx) => { const [targetX, targetY, targetWidth, targetHeight] = props.rect; const dx = targetX - currentX; const dy = targetY - currentY; diff --git a/app/components/Common/Buttons.vue b/app/components/Common/Buttons.vue index 09faa45..5c7d4e8 100644 --- a/app/components/Common/Buttons.vue +++ b/app/components/Common/Buttons.vue @@ -1,6 +1,4 @@