mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-10-25 00:02:16 +00:00
vcs-core: 223 lines, aspect ratio
This commit is contained in:
1 parent
de86d5dfcf
commit
abfd8e0983
1 file changed
+4
-1
+4
-1
@@ -194,7 +194,10 @@ export class JavatariMachine implements FrameBased, RasterFrameBased, VideoSourc
|
||||
// VIDEO
|
||||
|
||||
getVideoParams(): VideoParams {
|
||||
return { width: VISIBLE_WIDTH, height: VISIBLE_HEIGHT, aspect: VISIBLE_WIDTH * 2 / VISIBLE_HEIGHT, overscan: true };
|
||||
// a 2600's picture is 4:3 whatever the pixel grid happens to be -- with
|
||||
// overscan showing 223 lines, the pixels are about 1.86:1, so the ratio
|
||||
// has to be stated rather than derived from the width and height
|
||||
return { width: VISIBLE_WIDTH, height: VISIBLE_HEIGHT, aspect: 4 / 3, overscan: true };
|
||||
}
|
||||
connectVideo(pixels: Uint32Array) {
|
||||
this.pixels = pixels;
|
||||
|
||||
Reference in new issue
Block a user