r61525: now account for the inverted x-axis on the display (!)

Always has been.
This commit is contained in:
Lephe 2022-07-17 19:14:13 +01:00
parent 1c3c9727a5
commit 4e1136d0ac
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ void r61524_win_set(uint16_t HSA, uint16_t HEA, uint16_t VSA, uint16_t VEA)
void r61524_start_frame(int xmin, int xmax, int ymin, int ymax)
{
/* Move the window to the desired region, then select address 0 */
r61524_win_set(xmin, xmax, ymin, ymax);
r61524_win_set(395-xmax, 395-xmin, ymin, ymax);
select(ram_address_horizontal);
write(0);
select(ram_address_vertical);
@ -185,7 +185,7 @@ void r61524_display_rect(uint16_t *vram, int xmin, int xmax, int ymin,
int ymax)
{
dma_transfer_wait(0);
r61524_start_frame(xmin, xmax, ymin, xmax);
r61524_start_frame(xmin, xmax, ymin, ymax);
vram += 396 * ymin + xmin;