Skip to content

Commit

Permalink
psx: Set interlace flag based on resolution height from Framebuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
hornc committed Sep 15, 2024
1 parent 7283165 commit 997f31f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion psx/src/framebuffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,14 @@ impl Framebuffer {
],
swapped: false,
};
let interlace = match res.1 {
480 | 512 => true,
_ => false
};
GP1::skip_load()
.reset_gpu()
.dma_mode(Some(DMAMode::GP0))
.display_mode(res, video_mode, Depth::Bits15, false)?
.display_mode(res, video_mode, Depth::Bits15, interlace)?
.enable_display(true);
fb.irq_mask.enable_irq(IRQ::Vblank).store();
//fb.wait_vblank();
Expand Down

0 comments on commit 997f31f

Please sign in to comment.