Skip to content

Commit

Permalink
change solid driver to main
Browse files Browse the repository at this point in the history
  • Loading branch information
kasinskas committed Sep 29, 2023
1 parent 438c521 commit bdde39a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions packages/template-starter/src/entry/index.lng.jsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
import { Canvas, Config, render } from "@lightningjs/solid";
import { Router } from "@solidjs/router";
import App from "../app";
import coreExtensionModuleUrl from "./AppCoreExtensions.js?importChunkUrl";
import coreWorkerUrl from "./threadx-core-worker.js?importChunkUrl";
import { Canvas, Config, render } from '@lightningjs/solid';
import { Router } from '@solidjs/router';
import App from '../app';
import coreExtensionModuleUrl from './AppCoreExtensions.js?importChunkUrl';
import coreWorkerUrl from './threadx-core-worker.js?importChunkUrl';

Config.debug = false;
Config.fontSettings.fontFamily = "Ubuntu";
Config.fontSettings.fontFamily = 'Ubuntu';
Config.fontSettings.color = 0xffffffff;
Config.keyMap.m = "Menu";
Config.keyMap.t = "Text";
Config.keyMap.b = "Buttons";
Config.keyMap.m = 'Menu';
Config.keyMap.t = 'Text';
Config.keyMap.b = 'Buttons';

const driver = "threadx";
const driver = 'main';
const RenderOptions = {
coreExtensionModule: coreExtensionModuleUrl,
threadXCoreWorkerUrl: driver === "threadx" ? coreWorkerUrl : undefined,
// deviceLogicalPixelRatio: 1
coreExtensionModule: coreExtensionModuleUrl,
threadXCoreWorkerUrl: driver === 'threadx' ? coreWorkerUrl : undefined,
// deviceLogicalPixelRatio: 1
};

render(() => (
<Canvas options={RenderOptions}>
<Router>
<App />
</Router>
</Canvas>
<Canvas options={RenderOptions}>
<Router>
<App />
</Router>
</Canvas>
));

0 comments on commit bdde39a

Please sign in to comment.