More hires preview tweaks

This commit is contained in:
Will Scullin 2022-07-23 16:09:33 -07:00
parent c7e9598cc5
commit ed9370fd21
No known key found for this signature in database
GPG Key ID: 26DCD1042C6638CD
1 changed files with 2 additions and 2 deletions

View File

@ -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} />;
};