Merge pull request #4221 from Cacodemon345/patch-167

MGA: Implement X11 hardware cursor
This commit is contained in:
Miran Grča
2024-02-29 09:01:20 +01:00
committed by GitHub

View File

@@ -6016,6 +6016,17 @@ mystique_hwcursor_draw(svga_t *svga, int displine)
}
break;
case XCURCTRL_CURMODE_XWIN:
for (uint8_t x = 0; x < 64; x++) {
if ((dat[1] & (1ULL << 63)))
svga->monitor->target_buffer->line[displine][(offset + svga->x_add) & 2047] = (dat[0] & (1ULL << 63)) ? (mystique->cursor.col[1]) : (mystique->cursor.col[0]);
offset++;
dat[0] <<= 1;
dat[1] <<= 1;
}
break;
default:
break;
}