mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
More hires preview tweaks
This commit is contained in:
parent
c7e9598cc5
commit
ed9370fd21
@ -18,7 +18,7 @@ export interface FileViewerProps {
|
||||
|
||||
const HiresPreview = ({ binary }: { binary: Uint8Array }) => {
|
||||
const canvasRef = useRef<HTMLCanvasElement>(null);
|
||||
if (binary.byteLength < 8187 || binary.byteLength > 8197) {
|
||||
if (binary.byteLength < 8184 || binary.byteLength > 8192) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ const HiresPreview = ({ binary }: { binary: Uint8Array }) => {
|
||||
vm.blit();
|
||||
}
|
||||
|
||||
return <canvas ref={canvasRef} width={560} height={192} className={styles.hiresPreview} />;
|
||||
return <canvas ref={canvasRef} width={560} height={384} className={styles.hiresPreview} />;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user