From 549c8afd1cacd0f83640b22780e37437ec140bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Fri, 28 Oct 2022 20:33:16 +0100 Subject: [PATCH] feat: new fullscreen support --- examples/web/react/app.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/web/react/app.tsx b/examples/web/react/app.tsx index 84739a7b..a656d73a 100644 --- a/examples/web/react/app.tsx +++ b/examples/web/react/app.tsx @@ -55,6 +55,7 @@ type AppProps = { export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => { const [paused, setPaused] = useState(false); + const [fullscreen, setFullscreen] = useState(false); const [backgroundIndex, setBackgroundIndex] = useState(0); const getPauseText = () => (paused ? "Resume" : "Pause"); const getPauseIcon = () => @@ -89,7 +90,7 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => { <PanelSplit left={ <div> - <Display onDrawHandler={onDrawHAndler} /> + <Display fullscreen={fullscreen} onDrawHandler={onDrawHAndler} /> </div> } > -- GitLab