mirror of
https://github.com/zeldaret/oot.git
synced 2025-05-10 02:54:24 +00:00
* [iQue] Import vimodes from ultralib * Account for pixel_advance change on iQue * Actually do the fix properly
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/**
|
|
* @file vimodentschpn1.c
|
|
*
|
|
* NTSC HPN1 Video Mode
|
|
*
|
|
* H = High Resolution
|
|
* P = Point-Sampled
|
|
* N = Interlaced
|
|
* 1 = 16-bit Framebuffer
|
|
*/
|
|
#include "ultra64.h"
|
|
#include "ultra64/viint.h"
|
|
|
|
OSViMode osViModeNtscHpn1 = {
|
|
OS_VI_NTSC_HPN1, // type
|
|
{
|
|
// comRegs
|
|
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_SERRATE_ON | VI_CTRL_ANTIALIAS_MODE_2 |
|
|
VI_CTRL_PIXEL_ADV_DEFAULT, // ctrl
|
|
WIDTH(1280), // width
|
|
BURST(57, 34, 5, 62), // burst
|
|
VSYNC(524), // vSync
|
|
HSYNC(3093, 0), // hSync
|
|
LEAP(3093, 3093), // leap
|
|
HSTART(108, 748), // hStart
|
|
SCALE(1, 0), // xScale
|
|
VCURRENT(0), // vCurrent
|
|
},
|
|
{
|
|
// fldRegs
|
|
{
|
|
// [0]
|
|
ORIGIN(1280), // origin
|
|
SCALE(1, 0), // yScale
|
|
VSTART(35, 509), // vStart
|
|
BURST(4, 2, 14, 0), // vBurst
|
|
VINTR(2), // vIntr
|
|
},
|
|
{
|
|
// [1]
|
|
ORIGIN(2560), // origin
|
|
SCALE(1, 0), // yScale
|
|
VSTART(37, 511), // vStart
|
|
BURST(4, 2, 14, 0), // vBurst
|
|
VINTR(2), // vIntr
|
|
},
|
|
},
|
|
};
|