From 4037d36bfb909d9ceca198a42cf1411f2f2c1112 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Sun, 18 Oct 2020 02:05:29 +0200 Subject: [PATCH] Small but important fixes to the software cursor of the tgui9440 under Win2k/XP. --- src/video/vid_tgui9440.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/vid_tgui9440.c b/src/video/vid_tgui9440.c index e3a15db93..813020772 100644 --- a/src/video/vid_tgui9440.c +++ b/src/video/vid_tgui9440.c @@ -1063,7 +1063,7 @@ void tgui_accel_command(int count, uint32_t cpu_dat, tgui_t *tgui) { for (x = 0; x < 8; x++) { - tgui->accel.tgui_pattern[y][x] = tgui->accel.fg_col; + tgui->accel.tgui_pattern[y][7 - x] = tgui->accel.fg_col; } } } @@ -1073,7 +1073,7 @@ void tgui_accel_command(int count, uint32_t cpu_dat, tgui_t *tgui) { for (x = 0; x < 8; x++) { - tgui->accel.tgui_pattern[y][x] = (tgui->accel.pattern[y] & (1 << x)) ? tgui->accel.fg_col : tgui->accel.bg_col; + tgui->accel.tgui_pattern[y][7 - x] = (tgui->accel.pattern[y] & (1 << x)) ? tgui->accel.fg_col : tgui->accel.bg_col; } } } @@ -1085,7 +1085,7 @@ void tgui_accel_command(int count, uint32_t cpu_dat, tgui_t *tgui) { for (x = 0; x < 8; x++) { - tgui->accel.tgui_pattern[y][x] = tgui->accel.pattern[x + y*8]; + tgui->accel.tgui_pattern[y][7 - x] = tgui->accel.pattern[x + y*8]; } } } @@ -1095,7 +1095,7 @@ void tgui_accel_command(int count, uint32_t cpu_dat, tgui_t *tgui) { for (x = 0; x < 8; x++) { - tgui->accel.tgui_pattern[y][x] = tgui->accel.pattern[x*2 + y*16] | (tgui->accel.pattern[x*2 + y*16 + 1] << 8); + tgui->accel.tgui_pattern[y][7 - x] = tgui->accel.pattern[x*2 + y*16] | (tgui->accel.pattern[x*2 + y*16 + 1] << 8); } } }