vid_mga: Make Matrox Millennium multi-monitor compatible
This commit is contained in:
@@ -5126,9 +5126,9 @@ mystique_hwcursor_draw(svga_t *svga, int displine)
|
||||
case XCURCTRL_CURMODE_XGA:
|
||||
for (x = 0; x < 64; x++) {
|
||||
if (!(dat[1] & (1ull << 63)))
|
||||
buffer32->line[displine][offset + svga->x_add] = (dat[0] & (1ull << 63)) ? mystique->cursor.col[1] : mystique->cursor.col[0];
|
||||
svga->monitor->target_buffer->line[displine][offset + svga->x_add] = (dat[0] & (1ull << 63)) ? mystique->cursor.col[1] : mystique->cursor.col[0];
|
||||
else if (dat[0] & (1ull << 63))
|
||||
buffer32->line[displine][offset + svga->x_add] ^= 0xffffff;
|
||||
svga->monitor->target_buffer->line[displine][offset + svga->x_add] ^= 0xffffff;
|
||||
|
||||
offset++;
|
||||
dat[0] <<= 1;
|
||||
|
@@ -199,7 +199,7 @@ video_cards[] = {
|
||||
{ &s3_diamond_stealth_4000_pci_device },
|
||||
{ &s3_trio3d2x_pci_device },
|
||||
#if defined(DEV_BRANCH) && defined(USE_MGA)
|
||||
{ &millennium_device },
|
||||
{ &millennium_device, VIDEO_FLAG_TYPE_SPECIAL },
|
||||
{ &mystique_device },
|
||||
{ &mystique_220_device },
|
||||
#endif
|
||||
|
@@ -489,7 +489,7 @@ tvp3026_hwcursor_draw(svga_t *svga, int displine)
|
||||
|
||||
y_pos = displine;
|
||||
x_pos = offset + svga->x_add;
|
||||
p = buffer32->line[y_pos];
|
||||
p = svga->monitor->target_buffer->line[y_pos];
|
||||
|
||||
if (offset >= svga->dac_hwcursor_latch.x) {
|
||||
switch (mode) {
|
||||
|
Reference in New Issue
Block a user