mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-29 13:03:36 +01:00
render-cg: fix incorrect margin size for VRAMs
This commit is contained in:
parent
d2f788a3fc
commit
7822899b1f
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ bool dvram_init(void)
|
|||
/* Leave MARGIN bytes on each side of the region; this enables some
|
||||
important optimisations in the image renderer. We also add another
|
||||
32 bytes so we can manually 32-align the region */
|
||||
uint32_t region = (uint32_t)malloc(DWIDTH * DHEIGHT * 2 + MARGIN + 32);
|
||||
uint32_t region = (uint32_t)malloc(DWIDTH*DHEIGHT*2 + MARGIN*2 + 32);
|
||||
if(region == 0)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue