Skip to content

Commit

Permalink
(Need testing) support for full width top screen (800x240)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzn committed Jan 3, 2024
1 parent 041dbb1 commit 2921994
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/ns/ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ static u8 rpNwmHdr[rp_nwm_hdr_size];
static u8 *rpDataBuf[rp_work_count][rp_thread_count];
static u8 *rpPacketBufLast[rp_work_count][rp_thread_count];

#define rp_img_buffer_size (0x60000)
#define rp_nwm_buffer_size (0x30000)
#define rp_img_buffer_size (0xc0000)
#define rp_nwm_buffer_size (0x60000)
static u8* imgBuffer[rp_work_count];
static u32 currentTopId = 0, currentBottomId = 0;

Expand Down Expand Up @@ -1368,6 +1368,10 @@ void rpKernelCallback(int isTop) {
current_fb = REG(IoBasePdc + 0x478);
current_fb &= 1;
tl_current = tl_fbaddr[current_fb];

int full_width = !(tl_format & (7 << 4));
if (full_width)
tl_pitch *= 2;
} else {
bl_fbaddr[0] = REG(IoBasePdc + 0x568);
bl_fbaddr[1] = REG(IoBasePdc + 0x56c);
Expand Down

0 comments on commit 2921994

Please sign in to comment.