diff options
author | Bad Diode <bd@badd10de.dev> | 2022-10-27 20:44:48 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-10-27 20:44:48 +0200 |
commit | 656d36ed6971d12c668b19e609e8f25aba49cb88 (patch) | |
tree | 507f04ab0266efb5eb570344453b5c0efe9b5003 /src/ppu.c | |
parent | 75852933e7739ca726618533a5aa69f2a1d1322e (diff) | |
download | uxngba-656d36ed6971d12c668b19e609e8f25aba49cb88.tar.gz uxngba-656d36ed6971d12c668b19e609e8f25aba49cb88.zip |
Update screen_talk to handle screen_dei events
Diffstat (limited to 'src/ppu.c')
-rw-r--r-- | src/ppu.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -425,12 +425,11 @@ update_cursor(u8 pos) { | |||
425 | } | 425 | } |
426 | 426 | ||
427 | int | 427 | int |
428 | initppu(Ppu *p, u8 hor, u8 ver, u8 pad) { | 428 | initppu(Ppu *p, u8 hor, u8 ver) { |
429 | p->hor = hor; | 429 | p->hor = hor; |
430 | p->ver = ver; | 430 | p->ver = ver; |
431 | p->pad = pad; | 431 | p->width = (8 * p->hor); |
432 | p->width = (8 * p->hor + p->pad * 2); | 432 | p->height = (8 * p->ver); |
433 | p->height = (8 * p->ver + p->pad * 2); | ||
434 | 433 | ||
435 | // Initialize display mode and bg palette. | 434 | // Initialize display mode and bg palette. |
436 | DISP_CTRL = DISP_MODE_0 | DISP_BG_0 | DISP_BG_1 | DISP_OBJ; | 435 | DISP_CTRL = DISP_MODE_0 | DISP_BG_0 | DISP_BG_1 | DISP_OBJ; |